fix(worker): enable safe multi-instance job processing
Some checks failed
ci / release-gate (push) Has been cancelled
Some checks failed
ci / release-gate (push) Has been cancelled
This commit is contained in:
@@ -119,7 +119,7 @@ internal sealed class PostgresTestDatabaseTemplate : IDisposable
|
||||
public static PostgresTestDatabaseTemplate Create()
|
||||
{
|
||||
var adminConnectionString = Environment.GetEnvironmentVariable("TIKU_TEST_POSTGRES_ADMIN") ??
|
||||
$"Host=localhost;Database=postgres;Username={Environment.UserName};Pooling=false;Timeout=5;Command Timeout=60";
|
||||
DockerPostgresTestDefaults.AdminConnectionString;
|
||||
var adminBuilder = new NpgsqlConnectionStringBuilder(adminConnectionString);
|
||||
if (!string.Equals(adminBuilder.Database, "postgres", StringComparison.OrdinalIgnoreCase))
|
||||
throw new InvalidOperationException(
|
||||
@@ -171,4 +171,4 @@ internal sealed class PostgresTestDatabaseTemplate : IDisposable
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user