Skip to content

Commit 5bbdd3d

Browse files
Copilotisourabh
andauthored
Assert save is pending while the config file is locked
Co-authored-by: isourabh <2982389+isourabh@users.noreply.github.com>
1 parent 603061a commit 5bbdd3d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

MSStore.CLI.UnitTests/ConfigurationManagerUnitTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public async Task SaveAsyncWaitsForOtherProcessToReleaseTheFile()
4242

4343
await Task.Delay(100, TestContext.CancellationToken);
4444

45+
// The save must not have completed yet, otherwise it did not really
46+
// wait for the other process to release the file.
47+
saveTask.IsCompleted.Should().BeFalse();
48+
4549
otherProcessFile.Dispose();
4650

4751
await saveTask;

0 commit comments

Comments
 (0)