diff --git a/app/rest/api/rss_test.go b/app/rest/api/rss_test.go index 6adddd2a..b45a0453 100644 --- a/app/rest/api/rss_test.go +++ b/app/rest/api/rss_test.go @@ -153,8 +153,11 @@ func TestServer_RssWithReply(t *testing.T) { } func waitOnMinChange() { - if time.Now().Second() == 59 { - time.Sleep(1001 * time.Millisecond) + for { + if time.Now().Second() != 59 { + break + } + time.Sleep(10 * time.Millisecond) } }