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_amqp_test.go | |
parent | 300560b44451bd9d5241ccdbaea3576760968ef2 (diff) |
Update jobs stats tests
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/jobs/jobs_amqp_test.go')
-rw-r--r-- | tests/plugins/jobs/jobs_amqp_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/plugins/jobs/jobs_amqp_test.go b/tests/plugins/jobs/jobs_amqp_test.go index 4c1f600a..c35244c5 100644 --- a/tests/plugins/jobs/jobs_amqp_test.go +++ b/tests/plugins/jobs/jobs_amqp_test.go @@ -428,7 +428,8 @@ func TestAMQPStats(t *testing.T) { t.Run("PushPipelineDelayed", pushToPipeDelayed("test-3", 5)) out := &jobState.State{} - stats(t, out) + t.Run("Stats", stats(out)) + assert.Equal(t, out.Pipeline, "test-3") assert.Equal(t, out.Driver, "amqp") assert.Equal(t, out.Queue, "default") @@ -442,7 +443,7 @@ func TestAMQPStats(t *testing.T) { 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, "amqp") |