From b72080b6ce9e0e378afe3cf2edb06960f96bfc5e Mon Sep 17 00:00:00 2001 From: Fabian Seidl <fabian.seidl@h-da.de> Date: Thu, 11 Jan 2024 11:07:24 +0100 Subject: [PATCH] remove blocking part form ci tests --- integration-tests/application_tests/application_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/integration-tests/application_tests/application_test.go b/integration-tests/application_tests/application_test.go index 96c550dfe..020dd62fa 100644 --- a/integration-tests/application_tests/application_test.go +++ b/integration-tests/application_tests/application_test.go @@ -96,9 +96,7 @@ func TestMain(m *testing.M) { // Important note: only works once after starting the setup, because first time use creates // a user and updates it because of the login. After then only logins are done, no user creations. // This means that this will block after trying once, because the two attempts to read from eventChannel. - if os.Getenv("RABBITMQ") != "" { - _ = <-application.eventChannel - } else { + if os.Getenv("RABBITMQ") == "" { _ = <-application.eventChannel _ = <-application.eventChannel } -- GitLab