这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions lock_test/lock_manager_etcd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package lock_test
import (
"fmt"
"net/url"
"runtime"
"testing"

"github.com/mosuka/phalanx/lock"
Expand All @@ -12,6 +13,12 @@ import (
)

func TestEtcdLockManagerWithUri(t *testing.T) {
// Skip this test if windows.
// See https://github.com/etcd-io/etcd/issues/10854
if runtime.GOOS == "windows" {
return
}

defer testutil.AfterTest(t)
integration.BeforeTest(t)
cluster := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 1, UseTCP: true})
Expand All @@ -35,6 +42,12 @@ func TestEtcdLockManagerWithUri(t *testing.T) {
}

func TestEtcdLockManagerLock(t *testing.T) {
// Skip this test if windows.
// See https://github.com/etcd-io/etcd/issues/10854
if runtime.GOOS == "windows" {
return
}

defer testutil.AfterTest(t)
integration.BeforeTest(t)
cluster := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 1, UseTCP: true})
Expand Down
37 changes: 37 additions & 0 deletions metastore_test/storage_etcd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"net/url"
"reflect"
"runtime"
"sort"
"testing"

Expand All @@ -14,6 +15,12 @@ import (
)

func TestEtcdStorageWithUri(t *testing.T) {
// Skip this test if windows.
// See https://github.com/etcd-io/etcd/issues/10854
if runtime.GOOS == "windows" {
return
}

defer testutil.AfterTest(t)
integration.BeforeTest(t)
cluster := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 1, UseTCP: true})
Expand All @@ -37,6 +44,12 @@ func TestEtcdStorageWithUri(t *testing.T) {
}

func TestEtcdStoragePut(t *testing.T) {
// Skip this test if windows.
// See https://github.com/etcd-io/etcd/issues/10854
if runtime.GOOS == "windows" {
return
}

defer testutil.AfterTest(t)
integration.BeforeTest(t)
cluster := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 1, UseTCP: true})
Expand Down Expand Up @@ -65,6 +78,12 @@ func TestEtcdStoragePut(t *testing.T) {
}

func TestEtcdStorageGet(t *testing.T) {
// Skip this test if windows.
// See https://github.com/etcd-io/etcd/issues/10854
if runtime.GOOS == "windows" {
return
}

defer testutil.AfterTest(t)
integration.BeforeTest(t)
cluster := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 1, UseTCP: true})
Expand Down Expand Up @@ -99,6 +118,12 @@ func TestEtcdStorageGet(t *testing.T) {
}

func TestEtcdStorageDelete(t *testing.T) {
// Skip this test if windows.
// See https://github.com/etcd-io/etcd/issues/10854
if runtime.GOOS == "windows" {
return
}

defer testutil.AfterTest(t)
integration.BeforeTest(t)
cluster := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 1, UseTCP: true})
Expand Down Expand Up @@ -132,6 +157,12 @@ func TestEtcdStorageDelete(t *testing.T) {
}

func TestEtcdStorageExists(t *testing.T) {
// Skip this test if windows.
// See https://github.com/etcd-io/etcd/issues/10854
if runtime.GOOS == "windows" {
return
}

defer testutil.AfterTest(t)
integration.BeforeTest(t)
cluster := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 1, UseTCP: true})
Expand Down Expand Up @@ -178,6 +209,12 @@ func TestEtcdStorageExists(t *testing.T) {
}

func TestEtcdStorageList(t *testing.T) {
// Skip this test if windows.
// See https://github.com/etcd-io/etcd/issues/10854
if runtime.GOOS == "windows" {
return
}

defer testutil.AfterTest(t)
integration.BeforeTest(t)
cluster := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 1, UseTCP: true})
Expand Down