2023-06-22 11:55:30 +00:00
|
|
|
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"
|
2023-08-17 12:49:24 +00:00
|
|
|
"go.uber.org/zap"
|
2023-06-22 11:55:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestGeneric(t *testing.T) {
|
|
|
|
storagetest.TestAll(t, func(t *testing.T) storagetest.Component {
|
|
|
|
return New(
|
2023-08-17 12:49:24 +00:00
|
|
|
WithLogger(&logger.Logger{Logger: zap.L()}),
|
2023-06-22 11:55:30 +00:00
|
|
|
WithFlushWorkersCount(2),
|
|
|
|
WithPath(t.TempDir()),
|
|
|
|
WithGCInterval(1*time.Second))
|
|
|
|
})
|
|
|
|
}
|