Skip to content
Snippets Groups Projects
Commit 88b2ba2e authored by Fabian Seidl's avatar Fabian Seidl
Browse files

possible fix for integration test

parent ffe16f8c
No related branches found
No related tags found
1 merge request!1217Fix multiple rabbitmq consumers receiving all messages
This commit is part of merge request !1217. Comments created here will be created in the context of that merge request.
......@@ -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()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment