diff --git a/controller/northbound/server/auth_test.go b/controller/northbound/server/auth_test.go index 409b19e3e8a1295ecdb545c1b407568234981858..ba6487644fe11d68577783a293b11016ae4a325b 100644 --- a/controller/northbound/server/auth_test.go +++ b/controller/northbound/server/auth_test.go @@ -833,6 +833,10 @@ func createTestRoles() error { return nil } +// This is needed as a workaround for a bug where the output of the getUser test falsely was +// that it failed while actually passing. Apparantely, this can happen when loggers write +// the output of test cases. +// Solution found here: https://github.com/gotestyourself/gotestsum/issues/141#issuecomment-686243110 func patchLogger(t *testing.T) { orig := log.Writer() buf := new(bytes.Buffer)