aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/tarantool/tarantool_store_test.go
blob: 5002897736516070a8ff2308d461a5a451c811a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)
}