Skip to content

Commit b58316c

Browse files
committed
Fix flaky tests
1 parent 8cd9be2 commit b58316c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/WebJobs.Script.Tests/FileMonitoringServiceTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public static async Task SuspendRestart_Restart()
166166
// wait for restart
167167
await Task.Delay(1000);
168168
mockScriptHostManager.Verify(m => m.RestartHostAsync(default));
169+
await fileMonitoringService.StopAsync(CancellationToken.None);
169170
}
170171
}
171172

@@ -231,6 +232,7 @@ public static async Task SuspendRestart_Shutdown()
231232
// wait for restart
232233
await Task.Delay(1000);
233234
mockApplicationLifetime.Verify(m => m.StopApplication());
235+
await fileMonitoringService.StopAsync(CancellationToken.None);
234236
}
235237
}
236238

0 commit comments

Comments
 (0)