diff options
author | Valery Piashchynski <[email protected]> | 2021-08-18 09:15:16 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-18 09:15:16 +0300 |
commit | 1d092e57afb55a01283b41942ca3ef15a7e4bdef (patch) | |
tree | 3ee6f14d76a2142a39560c090d0329456254bd2b /tests/plugins/jobs/jobs_beanstalk_test.go | |
parent | 300560b44451bd9d5241ccdbaea3576760968ef2 (diff) |
Update jobs stats tests
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/jobs/jobs_beanstalk_test.go')
-rw-r--r-- | tests/plugins/jobs/jobs_beanstalk_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/plugins/jobs/jobs_beanstalk_test.go b/tests/plugins/jobs/jobs_beanstalk_test.go index a6eb3d4e..ba798ee0 100644 --- a/tests/plugins/jobs/jobs_beanstalk_test.go +++ b/tests/plugins/jobs/jobs_beanstalk_test.go @@ -408,22 +408,22 @@ func TestBeanstalkStats(t *testing.T) { time.Sleep(time.Second * 2) out := &jobState.State{} - stats(t, out) + t.Run("Stats", stats(out)) assert.Equal(t, out.Pipeline, "test-3") assert.Equal(t, out.Driver, "beanstalk") assert.Equal(t, out.Queue, "default") - assert.Equal(t, int64(0), out.Active) + assert.Equal(t, int64(1), out.Active) assert.Equal(t, int64(1), out.Delayed) - assert.Equal(t, int64(1), out.Reserved) + assert.Equal(t, int64(0), out.Reserved) time.Sleep(time.Second) t.Run("ResumePipeline", resumePipes("test-3")) time.Sleep(time.Second * 7) out = &jobState.State{} - stats(t, out) + t.Run("Stats", stats(out)) assert.Equal(t, out.Pipeline, "test-3") assert.Equal(t, out.Driver, "beanstalk") @@ -436,7 +436,7 @@ func TestBeanstalkStats(t *testing.T) { time.Sleep(time.Second) t.Run("DestroyPipeline", destroyPipelines("test-3")) - time.Sleep(time.Second * 5) + time.Sleep(time.Second) stopCh <- struct{}{} wg.Wait() } |