Skip to content

Commit 0b0df0f

Browse files
committed
Simulate real test work with a random delay
1 parent dbe4fb7 commit 0b0df0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Sample/UnitTest1.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public void FailsOnce()
2525
[Fact]
2626
public void FailsTwice()
2727
{
28+
// Add random delay to simulate actual test execution
29+
Thread.Sleep(Random.Shared.Next(1000, 5000));
30+
2831
var attempt = int.Parse(
2932
File.Exists("failstwice.txt") ?
3033
File.ReadAllText("failstwice.txt") :

0 commit comments

Comments
 (0)