test: seeing if slower tocks makes a different

This commit is contained in:
Dylan R. E. Moonfire 2021-01-21 18:45:09 -06:00
parent 276332f4c0
commit b2a143d1aa

View file

@ -65,9 +65,9 @@ namespace MfGames.Locking.Tests
public void UpgradableBlocksUpgradable()
{
Task.WaitAll(
Task.Run(() => this.TestUpgradable(1, 6, 1)),
Task.Run(() => this.TestUpgradable(1, 10, 1)),
Task.Run(() => this.TestUpgradable(2, 2, 2)),
Task.Run(() => this.TestUpgradable(4, 1, 3)));
Task.Run(() => this.TestUpgradable(5, 1, 3)));
this.VerifySequenceRecord(
(1, LockAction.BeforeLock),
@ -147,7 +147,9 @@ namespace MfGames.Locking.Tests
int waitTocks,
int sequence)
{
Thread.Sleep(50 * settleTocks);
const int TocksInMilliseconds = 100;
Thread.Sleep(TocksInMilliseconds * settleTocks);
this.RecordSequenceAction(sequence, LockAction.BeforeLock);
@ -157,7 +159,7 @@ namespace MfGames.Locking.Tests
this.RecordSequenceAction(sequence, LockAction.InLock);
Thread.Sleep(50 * waitTocks);
Thread.Sleep(TocksInMilliseconds * waitTocks);
this.RecordSequenceAction(sequence, LockAction.AfterLock);
}