From 47414a252f508c8c108695d69719e9945af386d8 Mon Sep 17 00:00:00 2001 From: Umputun Date: Fri, 5 Apr 2019 16:47:44 -0500 Subject: [PATCH] increase main test time to address crazy CI (travis) slowness in making buckets --- backend/app/main_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/app/main_test.go b/backend/app/main_test.go index 392985a1..219f9b73 100644 --- a/backend/app/main_test.go +++ b/backend/app/main_test.go @@ -28,7 +28,7 @@ func Test_Main(t *testing.T) { "--avatar.fs.path=" + dir, "--port=18222", "--url=https://demo.remark42.com", "--dbg", "--notify.type=none"} go func() { - time.Sleep(1000 * time.Millisecond) + time.Sleep(2000 * time.Millisecond) e := syscall.Kill(syscall.Getpid(), syscall.SIGTERM) require.Nil(t, e) }() @@ -38,12 +38,12 @@ func Test_Main(t *testing.T) { go func() { st := time.Now() main() - assert.True(t, time.Since(st).Seconds() < 2, "should take under 1s") + assert.True(t, time.Since(st).Seconds() > 2, "should take 2s") wg.Done() }() var passed bool - err = repeater.NewDefault(10, time.Millisecond*100).Do(context.Background(), func() error { + err = repeater.NewDefault(10, time.Millisecond*200).Do(context.Background(), func() error { resp, e := http.Get("http://localhost:18222/api/v1/ping") if e != nil { t.Logf("%+v", e)