From 10e79cdd906e65e08e66ca7d1c03d17c4e640f3c Mon Sep 17 00:00:00 2001 From: Aleksei Gurianov Date: Wed, 18 Jul 2018 22:27:56 +0400 Subject: [PATCH] another flaky ttl block test (#172) see #120 --- backend/app/rest/api/admin_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/rest/api/admin_test.go b/backend/app/rest/api/admin_test.go index 08d36884..7193a120 100644 --- a/backend/app/rest/api/admin_test.go +++ b/backend/app/rest/api/admin_test.go @@ -204,7 +204,7 @@ func TestAdmin_Block(t *testing.T) { assert.Equal(t, false, j["block"]) // block with ttl - code, _ = block(1, "10ms") + code, _ = block(1, "50ms") require.Equal(t, 200, code) res, code = get(t, ts.URL+"/api/v1/find?site=radio-t&url=https://radio-t.com/blah&sort=+time") @@ -216,7 +216,7 @@ func TestAdmin_Block(t *testing.T) { assert.Equal(t, "", comments.Comments[0].Text) assert.True(t, comments.Comments[0].Deleted) - time.Sleep(11 * time.Millisecond) + time.Sleep(50 * time.Millisecond) res, code = get(t, ts.URL+"/api/v1/find?site=radio-t&url=https://radio-t.com/blah&sort=+time") assert.Equal(t, 200, code) comments = commentsWithInfo{}