mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
run cache tests only on sqlite
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user