fix tests

This commit is contained in:
Pascal Fischer
2025-07-03 16:56:47 +02:00
parent 8a42528664
commit 8e0b8f20a2
3 changed files with 21 additions and 13 deletions

View File

@@ -1459,6 +1459,11 @@ func Test_RegisterPeerBySetupKey(t *testing.T) {
}
func Test_RegisterPeerRollbackOnFailure(t *testing.T) {
t.Setenv("NETBIRD_STORE_ENGINE", "postgres")
engine := os.Getenv("NETBIRD_STORE_ENGINE")
if engine == "sqlite" || engine == "" {
t.Skip("Skipping test because sqlite test store is not respecting foreign keys")
}
if runtime.GOOS == "windows" {
t.Skip("The SQLite store is not properly supported by Windows yet")
}