Fix integration tests race condition.

This commit is contained in:
Pieter-Jan Briers
2020-12-30 01:18:39 +01:00
parent 86e18eabe3
commit de2bdf4630
3 changed files with 20 additions and 2 deletions

View File

@@ -142,6 +142,10 @@ namespace Content.Shared
public static readonly CVarDef<string> DatabasePgPassword =
CVarDef.Create("database.pg_password", "", CVar.SERVERONLY);
// Basically only exists for integration tests to avoid race conditions.
public static readonly CVarDef<bool> DatabaseSynchronous =
CVarDef.Create("database.sync", false, CVar.SERVERONLY);
/*
* Outline