From c5e67a548c2afdb6f63fe071591fd6f4c510ceb0 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Sun, 31 Jan 2021 20:42:47 -0500 Subject: [PATCH] Even more records during db test --- db/db_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/db/db_test.go b/db/db_test.go index 9f605ce4a..3f3936e12 100644 --- a/db/db_test.go +++ b/db/db_test.go @@ -158,8 +158,7 @@ func Test_DeserializeInMemoryWithDSN(t *testing.T) { t.Fatalf("unexpected results for query\nexp: %s\ngot: %s", exp, got) } - // Write a some records to the new database, to ensure - // it's fully functional. + // Write a lot of records to the new database, to ensure it's fully functional. req = &command.Request{ Statements: []*command.Statement{ { @@ -167,7 +166,7 @@ func Test_DeserializeInMemoryWithDSN(t *testing.T) { }, }, } - for i := 0; i < 1000; i++ { + for i := 0; i < 5000; i++ { _, err = newDB.Execute(req, false) if err != nil { t.Fatalf("failed to insert records: %s", err.Error()) @@ -177,7 +176,7 @@ func Test_DeserializeInMemoryWithDSN(t *testing.T) { if err != nil { t.Fatalf("failed to query table: %s", err.Error()) } - if exp, got := `[{"columns":["COUNT(*)"],"types":[""],"values":[[1004]]}]`, asJSON(ro); exp != got { + if exp, got := `[{"columns":["COUNT(*)"],"types":[""],"values":[[5004]]}]`, asJSON(ro); exp != got { t.Fatalf("unexpected results for query\nexp: %s\ngot: %s", exp, got) } }