Skip to content

Commit dd4cea6

Browse files
committed
test: limit kv test on cosmosdb on windows only
1 parent 4e569da commit dd4cea6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: pkg/kv/cosmosdb/main_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ var (
2626
)
2727

2828
func TestCosmosDB(t *testing.T) {
29-
kvtest.DriverTest(t, func(t testing.TB, ctx context.Context) kv.Store {
30-
if runtime.GOOS == "darwin" {
31-
t.Skipf("this test hangs for macOS users, and fails. skipping - see Issue#8476 for more details")
32-
}
29+
if runtime.GOOS != "windows" {
30+
t.Skip("Run CosmosDB tests on Widnows only, skipping - see Issue#8476 for more details")
31+
}
3332

33+
kvtest.DriverTest(t, func(t testing.TB, ctx context.Context) kv.Store {
3434
t.Helper()
3535

3636
databaseClient, err := client.NewDatabase(testParams.Database)
@@ -61,8 +61,8 @@ func TestCosmosDB(t *testing.T) {
6161
}
6262

6363
func TestMain(m *testing.M) {
64-
if runtime.GOOS == "darwin" {
65-
// this part hangs for macOS users, and fails. skipping - see Issue#8476 for more details
64+
if runtime.GOOS != "windows" {
65+
// this part hangs for non windows users, and fails. skipping - see Issue#8476 for more details
6666
return
6767
}
6868

0 commit comments

Comments
 (0)