Browse Source
refactor
refactor
add some tests https://github.com/chrislusf/seaweedfs/pull/2996pull/3043/head
Konstantin Lebedev
3 years ago
4 changed files with 31 additions and 20 deletions
-
10docker/Makefile
-
4docker/compose/test-ydb-filer.yml
-
16weed/filer/ydb/ydb_store.go
-
19weed/filer/ydb/ydb_store_test.go
@ -0,0 +1,19 @@ |
|||
//go:build ydb
|
|||
// +build ydb
|
|||
|
|||
package ydb |
|||
|
|||
import ( |
|||
"github.com/chrislusf/seaweedfs/weed/filer/store_test" |
|||
"testing" |
|||
) |
|||
|
|||
func TestStore(t *testing.T) { |
|||
// run "make test_ydb" under docker folder.
|
|||
// to set up local env
|
|||
if false { |
|||
store := &YdbStore{} |
|||
store.initialize("/buckets", "grpc://localhost:2136/?database=local", "seaweedfs", true, 10, 50) |
|||
store_test.TestFilerStore(t, store) |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue