diff options
| author | MaratKarimov <wto17ty@gmail.com> | 2025-03-30 07:12:06 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-29 21:12:06 -0700 |
| commit | ba3afd18037919861470f99a3554bd4c20c1d95c (patch) | |
| tree | 95151f374e88ae2e72bbacee61af8cd6b360b22a /weed/filer/tarantool/tarantool_store_test.go | |
| parent | 528702d30b05b83642affb0dabb09926357d1f10 (diff) | |
| download | seaweedfs-ba3afd18037919861470f99a3554bd4c20c1d95c.tar.xz seaweedfs-ba3afd18037919861470f99a3554bd4c20c1d95c.zip | |
Tarantool filer store (#6669)
Co-authored-by: Marat Karimov <m.karimov@digitalms.ru>
Diffstat (limited to 'weed/filer/tarantool/tarantool_store_test.go')
| -rw-r--r-- | weed/filer/tarantool/tarantool_store_test.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/weed/filer/tarantool/tarantool_store_test.go b/weed/filer/tarantool/tarantool_store_test.go new file mode 100644 index 000000000..500289773 --- /dev/null +++ b/weed/filer/tarantool/tarantool_store_test.go @@ -0,0 +1,24 @@ +//go:build tarantool +// +build tarantool + +package tarantool + +import ( + "os" + "testing" + "time" + + "github.com/seaweedfs/seaweedfs/weed/filer/store_test" +) + +func TestStore(t *testing.T) { + // run "make test_tarantool" under docker folder. + // to set up local env + if os.Getenv("RUN_TARANTOOL_TESTS") != "1" { + t.Skip("Tarantool tests are disabled. Set RUN_TARANTOOL_TESTS=1 to enable.") + } + store := &TarantoolStore{} + addresses := []string{"127.0.1:3303"} + store.initialize(addresses, "client", "client", 5*time.Second, 1000) + store_test.TestFilerStore(t, store) +} |
