Skip to content

Commit 99aa273

Browse files
committed
Tests: wait 1 second between each test to avoid possible hangs
1 parent 90aef81 commit 99aa273

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/TgSharp.Tests.NUnit/Test.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ public void Init()
1515
base.Init(o => Assert.IsNotNull(o), b => Assert.IsTrue(b));
1616
}
1717

18+
[SetUp]
19+
public void DummyWait()
20+
{
21+
// if we don't wait a bit between tests, they could hang...
22+
System.Threading.Thread.Sleep(TimeSpan.FromSeconds(1.0));
23+
}
24+
1825
[Test]
1926
[Ignore("Only run again when you want a new CodeToAuthenticate value in your app.config")]
2027
public async override Task AuthUser()

0 commit comments

Comments
 (0)