Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
anhhuu committed Dec 24, 2023
1 parent 3776cf2 commit e57b08f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions concurrent_executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,13 @@ func TestConcurrentExecutor_EnqueueTask(t *testing.T) {

concurrentExecutor := NewConcurrentExecutor(defaultMaxConcurrentTasks, defautMaxTaskQueueSize)
concurrentExecutor.Close()
concurrentExecutor.EnqueueTask(Task{
_ = concurrentExecutor.EnqueueTask(Task{
ID: "test",
Executor: func(ctx context.Context, args ...interface{}) (interface{}, error) {
return "", nil
},
ExecutorArgs: nil,
})
concurrentExecutor.Close()
})

t.Run("Enqueue task into a full queue", func(t *testing.T) {
Expand Down Expand Up @@ -336,13 +335,14 @@ func TestConcurrentExecutor_StartExecution(t *testing.T) {
}()

concurrentExecutor := NewConcurrentExecutor(defaultMaxConcurrentTasks, defautMaxTaskQueueSize)
concurrentExecutor.EnqueueTask(Task{
err := concurrentExecutor.EnqueueTask(Task{
ID: "test",
Executor: func(ctx context.Context, args ...interface{}) (interface{}, error) {
return "", nil
},
ExecutorArgs: nil,
})
test.Nil(err)
concurrentExecutor.Close()
concurrentExecutor.StartExecution(context.Background())
})
Expand Down

0 comments on commit e57b08f

Please sign in to comment.