tarantool_store_test.go 565 B

123456789101112131415161718192021222324
  1. //go:build tarantool
  2. // +build tarantool
  3. package tarantool
  4. import (
  5. "os"
  6. "testing"
  7. "time"
  8. "github.com/seaweedfs/seaweedfs/weed/filer/store_test"
  9. )
  10. func TestStore(t *testing.T) {
  11. // run "make test_tarantool" under docker folder.
  12. // to set up local env
  13. if os.Getenv("RUN_TARANTOOL_TESTS") != "1" {
  14. t.Skip("Tarantool tests are disabled. Set RUN_TARANTOOL_TESTS=1 to enable.")
  15. }
  16. store := &TarantoolStore{}
  17. addresses := []string{"127.0.1:3303"}
  18. store.initialize(addresses, "client", "client", 5*time.Second, 1000)
  19. store_test.TestFilerStore(t, store)
  20. }