run cache tests only on sqlite

This commit is contained in:
Pascal Fischer
2025-10-13 17:44:18 +02:00
parent 488afe4082
commit 3fcf43114b

View File

@@ -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()