Skip to content

Commit

Permalink
test: limit kv test on cosmosdb on windows only
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder committed Feb 16, 2025
1 parent 4e569da commit dd4cea6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/kv/cosmosdb/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ var (
)

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

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

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

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

Expand Down

0 comments on commit dd4cea6

Please sign in to comment.