Throw the failing error message in Live tests

This commit is contained in:
Jordan Dominion
2023-11-17 10:48:45 -05:00
parent 47f5c55b7f
commit e6ae9b73c4
@@ -30,7 +30,7 @@ namespace Tgstation.Server.Tests.Live
&& !(logMessage.StartsWith("An exception occurred in the database while saving changes for context type") && (exception is OperationCanceledException || exception?.InnerException is OperationCanceledException)))
|| (logLevel == LogLevel.Critical && logMessage != "DropDatabase configuration option set! Dropping any existing database..."))
{
failureSink(new AssertFailedException("TGS logged an unexpected error!"));
failureSink(new AssertFailedException($"TGS ERR: {logMessage}"));
}
}
}