Skip to content

Commit dcd9d8f

Browse files
committed
Add 10s timeout to DAP tests
Since this logic will spin forever if a test fails.
1 parent 7e30287 commit dcd9d8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/PowerShellEditorServices.Test.E2E/DebugAdapterProtocolMessageTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private string GenerateScriptFromLoggingStatements(params string[] logStatements
162162

163163
private static async Task<string[]> GetLog()
164164
{
165-
while (!File.Exists(s_testOutputPath))
165+
for (int i = 0; !File.Exists(s_testOutputPath) && i < 10; i++)
166166
{
167167
await Task.Delay(1000).ConfigureAwait(true);
168168
}

0 commit comments

Comments
 (0)