Skip to content
Snippets Groups Projects

Fix multiple rabbitmq consumers receiving all messages

Merged Fabian Seidl requested to merge fix-for-multiple-rabbitmq-consumers into master
1 file
+ 0
11
Compare changes
  • Side-by-side
  • Inline
@@ -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()
}
Loading