Some QoL improvements to debugging error log test failures

This commit is contained in:
Dominion
2023-05-28 08:57:31 -04:00
parent 7599a4d988
commit ccd0f00a30
@@ -27,7 +27,10 @@ namespace Tgstation.Server.Tests.Live
&& !logMessage.StartsWith("Error disconnecting connection ")
&& !(logMessage.StartsWith("An exception occurred while iterating over the results of a query for context type") && (exception is TaskCanceledException || exception?.InnerException is TaskCanceledException)))
|| (logLevel == LogLevel.Critical && logMessage != "DropDatabase configuration option set! Dropping any existing database..."))
failureSink(new AssertFailedException("TGS logged an error!"));
{
failureSink(new AssertFailedException("TGS logged an unexpected error!"));
Console.WriteLine("UNEXPECTED ERROR OCCURS NEAR HERE");
}
}
}
}