Skip to content

Commit 983c1b2

Browse files
Add [DoNotParallelize] attribute to TestSaveIfRequiredStaticMethod to prevent parallel execution
1 parent 0043c36 commit 983c1b2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

AppDataStorage.Test/AppDataTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,11 @@ public void TestQueueSaveStaticMethod()
647647
}
648648

649649
[TestMethod]
650+
[DoNotParallelize]
650651
public void TestSaveIfRequiredStaticMethod()
651652
{
653+
// This test uses the static singleton which is shared across tests,
654+
// so it cannot run in parallel with other tests that use TestAppData.Get()
652655
TestAppData.QueueSave();
653656
Thread.Sleep(TestAppData.Get().SaveDebounceTime + TimeSpan.FromMilliseconds(100));
654657

0 commit comments

Comments
 (0)