Skip to content

Commit 8b5e2aa

Browse files
Copilotbrianrob
andcommitted
Fail test if data file is missing instead of skipping
Co-authored-by: brianrob <[email protected]>
1 parent e615033 commit 8b5e2aa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/TraceEvent/TraceEvent.Tests/Regression/RecursiveCallTest.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,8 @@ public void RecursiveCallsWithMutableTraceEventStackSource()
161161
"..", "..", "..", "inputs");
162162
string zipFile = Path.Combine(testDataDir, "eventpipe-dotnetcore6.0-win-x64-executioncheckpoints.nettrace.zip");
163163

164-
// Skip test if file doesn't exist (CI environments may not have test data)
165-
if (!File.Exists(zipFile))
166-
{
167-
return; // Skip test
168-
}
164+
// Test data files should always be present
165+
Assert.True(File.Exists(zipFile), $"Test data file not found: {zipFile}");
169166

170167
string unzippedFile = Path.Combine(Path.GetTempPath(), $"test_recursive_{Guid.NewGuid()}.nettrace");
171168
string tempEtlxFile = null;

0 commit comments

Comments
 (0)