diff --git a/management/server/store/sql_store_test.go b/management/server/store/sql_store_test.go index 78e7d1bf7..ea4f80f5d 100644 --- a/management/server/store/sql_store_test.go +++ b/management/server/store/sql_store_test.go @@ -3725,6 +3725,10 @@ func TestSqlStore_CacheHit(t *testing.T) { t.Skip("The SQLite store is not properly supported by Windows yet") } + if os.Getenv("NETBIRD_STORE_ENGINE") != "sqlite" { + t.Skip("Skipping test because NewTestStoreFromSQL doesn't share db") + } + t.Setenv(storeCacheEnabledEnv, "true") store, cleanUp, err := NewTestStoreFromSQL(context.Background(), "../testdata/store.sql", t.TempDir()) @@ -3771,6 +3775,10 @@ func TestSqlStore_CacheInvalidationAcrossInstances(t *testing.T) { t.Skip("The SQLite store is not properly supported by Windows yet") } + if os.Getenv("NETBIRD_STORE_ENGINE") != "sqlite" { + t.Skip("Skipping test because NewTestStoreFromSQL doesn't share db") + } + t.Setenv(storeCacheEnabledEnv, "true") ctx := context.Background() @@ -3839,6 +3847,10 @@ func TestSqlStore_CacheGetAccountWithAssociations(t *testing.T) { t.Skip("The SQLite store is not properly supported by Windows yet") } + if os.Getenv("NETBIRD_STORE_ENGINE") != "sqlite" { + t.Skip("Skipping test because NewTestStoreFromSQL doesn't share db") + } + t.Setenv(storeCacheEnabledEnv, "true") ctx := context.Background() @@ -3913,6 +3925,10 @@ func TestSqlStore_CacheGetGroupWithAssociations(t *testing.T) { t.Skip("The SQLite store is not properly supported by Windows yet") } + if os.Getenv("NETBIRD_STORE_ENGINE") != "sqlite" { + t.Skip("Skipping test because NewTestStoreFromSQL doesn't share db") + } + t.Setenv(storeCacheEnabledEnv, "true") ctx := context.Background()