From fdef63c61d0634dd350835729061a9e077b74281 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sun, 30 Dec 2018 23:29:13 -0600 Subject: [PATCH] make import expired test to run longer --- backend/app/rest/api/migrator_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/rest/api/migrator_test.go b/backend/app/rest/api/migrator_test.go index 8ca343e3..44642f30 100644 --- a/backend/app/rest/api/migrator_test.go +++ b/backend/app/rest/api/migrator_test.go @@ -187,7 +187,7 @@ func TestMigrator_ImportWaitExpired(t *testing.T) { tmpl := `{"id":"%d","pid":"","text":"

test test #1

","user":{"name":"developer one","id":"dev","picture":"/api/v1/avatar/remark.image","profile":"https://remark42.com","admin":true,"ip":"ae12fe3b5f129b5cc4cdd2b136b7b7947c4d2741"},"locator":{"site":"radio-t","url":"https://radio-t.com/blah1"},"score":0,"votes":{},"time":"2018-04-30T01:37:00.849053725-05:00"}` recs := []string{} - for i := 0; i < 1000; i++ { + for i := 0; i < 5000; i++ { recs = append(recs, fmt.Sprintf(tmpl, i)) } r := strings.NewReader(`{"version":1}` + strings.Join(recs, "\n")) // reader with 10k records