make import expired test to run longer

This commit is contained in:
Umputun
2018-12-30 23:29:13 -06:00
parent 7deee9aaa1
commit fdef63c61d
+1 -1
View File
@@ -187,7 +187,7 @@ func TestMigrator_ImportWaitExpired(t *testing.T) {
tmpl := `{"id":"%d","pid":"","text":"<p>test test #1</p>","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