Skip to content

Commit c7e8a37

Browse files
chore: Fix flaky progress handler tests.
1 parent 1d3dc69 commit c7e8a37

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

GDVM.Tests/Progress/SpectreProgressHandlerTests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ public SpectreProgressHandlerTests()
1616
};
1717

1818
_testConsole.EmitAnsiSequences();
19+
20+
// NOTE: Without this, some tests fail in isolation?
21+
// TODO: Investigate further
22+
var handler = new SpectreProgressHandler<InstallationStage>(_testConsole);
23+
handler.TrackProgressAsync(async p =>
24+
{
25+
p.Report(new OperationProgress<InstallationStage>(InstallationStage.Initializing, "Init"));
26+
await Task.Delay(1);
27+
return 0;
28+
}).Wait();
1929
}
2030

2131
[Fact]

0 commit comments

Comments
 (0)