diff --git a/integration-tests/application_tests/application_test.go b/integration-tests/application_tests/application_test.go index 96c550dfe6935223b92cb0686792feac637961e2..020dd62fa6a10e8f95b72691d0d2371a2b6710e3 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 }