diff --git a/node/server_test.go b/node/server_test.go index 3dbe603bcfc049f6a421c9641a49d43c0cbaecc8..cbd06ed4682e67b4bcfe91cfef9bbb61a1d6a361 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).