Documentation, tests, dependencies.

This commit is contained in:
Nuno Cruces
2023-03-01 13:27:50 +00:00
parent dbc400eb15
commit 416c3863a0
5 changed files with 16 additions and 6 deletions

View File

@@ -14,8 +14,15 @@ import (
)
func TestParallel(t *testing.T) {
var iter int
if testing.Short() {
iter = 1000
} else {
iter = 5000
}
name := filepath.Join(t.TempDir(), "test.db")
testParallel(t, name, 1000)
testParallel(t, name, iter)
testIntegrity(t, name)
}
@@ -135,7 +142,7 @@ func testParallel(t *testing.T, name string, n int) {
}
var group errgroup.Group
group.SetLimit(4)
group.SetLimit(6)
for i := 0; i < n; i++ {
if i&7 != 7 {
group.Go(reader)