From 5ced8b6624457e74b702322dbf27a94437ee58ae Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Fri, 28 Jan 2022 16:03:34 -0800 Subject: [PATCH] Hackishly fixing race condition in test --- cmd/mothd/server_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/mothd/server_test.go b/cmd/mothd/server_test.go index 1e57835..7dd23b6 100644 --- a/cmd/mothd/server_test.go +++ b/cmd/mothd/server_test.go @@ -73,6 +73,8 @@ func TestProdServer(t *testing.T) { t.Error("Wrong error for duplicate registration:", err) } + time.Sleep(10 * time.Millisecond) + if err := handler.AssignParticipant(); err != nil { t.Error(err) }