summaryrefslogtreecommitdiff
path: root/tests/plugins/jobs/jobs_amqp_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/jobs/jobs_amqp_test.go')
-rw-r--r--tests/plugins/jobs/jobs_amqp_test.go5
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")