diff --git a/integration-tests/application_tests/application_test.go b/integration-tests/application_tests/application_test.go index 9b3797a5540cb2c42231729a68b7fd6c6635c6e0..ee8ec34f211e3f960abf6c737e376476562254ad 100644 --- a/integration-tests/application_tests/application_test.go +++ b/integration-tests/application_tests/application_test.go @@ -94,17 +94,6 @@ func TestMain(m *testing.M) { } go application.Run(eventTypeCallbackTuples) - // This is needed to clear the go channel of the messages sent by RabbitMQ when creating - // and logging in with the admin user. - // Important note: only works once after starting the setup, because first time use creates - // a user and role and update the user because of the login. After then only logins are done, no user and role creations. - // This means that this will block after trying once, because of the three attempts to read from eventChannels. - - <-application.addEventChannel - <-application.addEventChannel - <-application.addEventChannel - <-application.updateEventChannel - m.Run() }