diff --git a/integration-tests/application_tests/application_test.go b/integration-tests/application_tests/application_test.go index 8e22c1caa0dbfdb6c8225eb0c4aa3c6e360e2893..cd1981ef377cf43d5b160980cbc825161ef8792e 100644 --- a/integration-tests/application_tests/application_test.go +++ b/integration-tests/application_tests/application_test.go @@ -97,9 +97,11 @@ func TestMain(m *testing.M) { // 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. - _ = <-application.addEventChannel - _ = <-application.addEventChannel - _ = <-application.updateEventChannel + if os.Getenv("RABBITMQ") == "" { + _ = <-application.addEventChannel + _ = <-application.addEventChannel + _ = <-application.updateEventChannel + } m.Run() }