From d3cc5baf3e127cec669073512f91b4d9d6e9061d Mon Sep 17 00:00:00 2001 From: Fabian Seidl <fabian.seidl@h-da.de> Date: Thu, 11 Jan 2024 15:26:11 +0100 Subject: [PATCH] read from channel only when not in ci, again --- integration-tests/application_tests/application_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/integration-tests/application_tests/application_test.go b/integration-tests/application_tests/application_test.go index 8e22c1caa..cd1981ef3 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() } -- GitLab