Skip to content

Commit

Permalink
Additional test logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Oct 22, 2023
1 parent 71f5c73 commit b223680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Tgstation.Server.Tests/Live/Instance/WatchdogTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ void TestLinuxIsntBeingFuckingCheekyAboutFilePaths(DreamDaemonResponse currentSt

var path = sb.ToString();

allPaths.Add(path);
allPaths.Add($"Path: {path}");
if (path.Contains($"Game/{previousStatus.DirectoryName}"))
failingLinks.Add($"Found fd {fd} resolving to previous absolute path game dir path: {path}");

Expand All @@ -516,7 +516,7 @@ void TestLinuxIsntBeingFuckingCheekyAboutFilePaths(DreamDaemonResponse currentSt
if (!foundLivePath)
failingLinks.Add($"Failed to find a path containing the 'Live' directory!");

Assert.IsTrue(failingLinks.Count == 0, String.Join(Environment.NewLine, failingLinks));
Assert.IsTrue(failingLinks.Count == 0, String.Join(Environment.NewLine, failingLinks.Concat(allPaths)));
}

async Task RunHealthCheckTest(bool checkDump, CancellationToken cancellationToken)
Expand Down

0 comments on commit b223680

Please sign in to comment.