From 7a6a75dd639ba07a95e2de72ee591c377ca36dc7 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 5 Jul 2024 12:36:56 +0200 Subject: [PATCH] fix: correct tests asserts Signed-off-by: Valery Piashchynski --- tests/env/docker-compose-otel.yaml | 2 -- tests/env/docker-compose-sqs-local.yaml | 2 -- tests/jobs_sqs_test.go | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/env/docker-compose-otel.yaml b/tests/env/docker-compose-otel.yaml index 098fac5..ed669a9 100644 --- a/tests/env/docker-compose-otel.yaml +++ b/tests/env/docker-compose-otel.yaml @@ -1,5 +1,3 @@ -version: "3.8" - services: collector: image: otel/opentelemetry-collector-contrib diff --git a/tests/env/docker-compose-sqs-local.yaml b/tests/env/docker-compose-sqs-local.yaml index 5487c14..87db10d 100644 --- a/tests/env/docker-compose-sqs-local.yaml +++ b/tests/env/docker-compose-sqs-local.yaml @@ -1,5 +1,3 @@ -version: "3" - services: localstack: image: localstack/localstack diff --git a/tests/jobs_sqs_test.go b/tests/jobs_sqs_test.go index d5d84ce..158fcf0 100644 --- a/tests/jobs_sqs_test.go +++ b/tests/jobs_sqs_test.go @@ -202,7 +202,7 @@ func TestSQSRemovePQ(t *testing.T) { assert.Equal(t, 2, oLogger.FilterMessageSnippet("pipeline was started").Len()) assert.Equal(t, 2, oLogger.FilterMessageSnippet("pipeline was stopped").Len()) assert.Equal(t, 20, oLogger.FilterMessageSnippet("job was pushed successfully").Len()) - assert.Equal(t, 2, oLogger.FilterMessageSnippet("job processing was started").Len()) + assert.Equal(t, 4, oLogger.FilterMessageSnippet("job processing was started").Len()) assert.Equal(t, 2, oLogger.FilterMessageSnippet("sqs listener was stopped").Len()) }