Skip to content

Commit 09f10e6

Browse files
committed
remove infinite CI loop in media tests
1 parent 324c56f commit 09f10e6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/SayMoreTests/MediaUtils/MPlayer/MediaPlayerViewModelTests.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ public void LoadAndPlayFile_FileNameHasAsciiCharacter_Plays()
252252
File.Delete(pathname);
253253
};
254254
_model.Play();
255-
while (_model != null)
256-
Thread.Sleep(10);
255+
Thread.Sleep(3);
257256
Assert.IsTrue(logger.GetText().Contains("Starting playback..."));
258257
}
259258

@@ -276,8 +275,7 @@ public void LoadAndPlayFile_FileNameHasNonAsciiCharacter_Plays()
276275
File.Delete(pathname);
277276
};
278277
_model.Play();
279-
while (_model != null)
280-
Thread.Sleep(10);
278+
Thread.Sleep(3);
281279
Assert.IsTrue(logger.GetText().Contains("Starting playback..."));
282280
}
283281

@@ -305,8 +303,7 @@ public void LoadAndPlayFile_FolderHasNonAsciiCharacter_Plays()
305303
File.Delete(pathname);
306304
};
307305
_model.Play();
308-
while (_model != null)
309-
Thread.Sleep(10);
306+
Thread.Sleep(3);
310307
Assert.IsTrue(logger.GetText().Contains("Starting playback..."));
311308
}
312309
}

0 commit comments

Comments
 (0)