From 260bdf450feff63c4613b1fe06d50945ad1548d0 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Fri, 29 Jan 2021 20:04:59 +0000 Subject: [PATCH] Add small sleep to stabilize test --- node/server_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/server_test.go b/node/server_test.go index 3dbe603b..cbd06ed4 100644 --- a/node/server_test.go +++ b/node/server_test.go @@ -138,6 +138,10 @@ func TestServer(t *testing.T) { } log.Printf("stream /stream.ogg created successfully") + // Sleep a small amount of time to avoid spurious 404 errors + // due to etcd propagation. + time.Sleep(500 * time.Millisecond) + // Try to read from the stream and verify the upstream data. // Force connections always to node1 (the HTTP redirect will // have a DNS name, so we need to override that). -- GitLab