All checks were successful
DCO action / DCO (pull_request) Successful in 2m18s
Vulncheck / Vulncheck (pull_request) Successful in 2m40s
Build / Build Components (1.20) (pull_request) Successful in 3m25s
Build / Build Components (1.21) (pull_request) Successful in 3m20s
Tests and linters / Staticcheck (pull_request) Successful in 3m44s
Tests and linters / Tests (1.20) (pull_request) Successful in 5m5s
Tests and linters / Tests with -race (pull_request) Successful in 5m12s
Tests and linters / Tests (1.21) (pull_request) Successful in 16m31s
Tests and linters / Lint (pull_request) Successful in 20m15s
Semantic patch: ``` @@ @@ -import "go.uber.org/zap/zaptest" +import "go.uber.org/zap" -zaptest.NewLogger(t) +zap.L() ``` Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
20 lines
488 B
Go
20 lines
488 B
Go
package writecachebadger
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/internal/storagetest"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/logger"
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
func TestGeneric(t *testing.T) {
|
|
storagetest.TestAll(t, func(t *testing.T) storagetest.Component {
|
|
return New(
|
|
WithLogger(&logger.Logger{Logger: zap.L()}),
|
|
WithFlushWorkersCount(2),
|
|
WithPath(t.TempDir()),
|
|
WithGCInterval(1*time.Second))
|
|
})
|
|
}
|