mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-21 04:53:44 +01:00
Wait 10 minutes before timing out DB in GitHub Actions
This commit is contained in:
@@ -129,14 +129,14 @@ namespace Tgstation.Server.Tests.Live
|
||||
|
||||
var connectionFactory = new DatabaseConnectionFactory();
|
||||
|
||||
using var cts = new CancellationTokenSource(TimeSpan.FromMinutes(1));
|
||||
using var cts = new CancellationTokenSource(TimeSpan.FromMinutes(LiveTestUtils.RunningInGitHubActions ? 10 : 1));
|
||||
var cancellationToken = cts.Token;
|
||||
|
||||
try
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
using var connection = connectionFactory.CreateConnection(connectionString, databaseType);
|
||||
await using var connection = connectionFactory.CreateConnection(connectionString, databaseType);
|
||||
try
|
||||
{
|
||||
await connection.OpenAsync(cancellationToken);
|
||||
|
||||
Reference in New Issue
Block a user