storj/storage/storelogger/logger_test.go
Egon Elbre 76fdb5d863 storage: add configurable lookup limits
Currently storage tests were tied to the default lookup limit.
By increasing the limits, the tests will take longer and sometimes
cause a large number of goroutines to be started.

This change adds configurable lookup limit to all storage backends.

Also remove boltdb.NewShared, since it's not used any more.

Change-Id: I1a052f149da471246fac5745da133c3cfc27582e
2020-01-22 21:35:56 +02:00

27 lines
507 B
Go

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package storelogger
import (
"testing"
"go.uber.org/zap"
"storj.io/storj/storage/teststore"
"storj.io/storj/storage/testsuite"
)
func TestSuite(t *testing.T) {
store := teststore.New()
store.SetLookupLimit(500)
logged := New(zap.NewNop(), store)
testsuite.RunTests(t, logged)
}
func BenchmarkSuite(b *testing.B) {
store := teststore.New()
logged := New(zap.NewNop(), store)
testsuite.RunBenchmarks(b, logged)
}