Skip to content

Commit e12aa34

Browse files
committed
use Task.delay instead to thread.sleep to allow sampling group to sample in time
1 parent e7b6dc9 commit e12aa34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/Opc.Ua.Server.Tests/ReferenceServerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ public void TransferSubscription(bool sendInitialData, bool useSecurity)
449449
[TestCase(false, kQueueSize)]
450450
[TestCase(true, 0U)]
451451
[TestCase(false, 0U)]
452-
public void ResendData(bool updateValues, uint queueSize)
452+
public async Task ResendData(bool updateValues, uint queueSize)
453453
{
454454
var serverTestServices = new ServerTestServices(m_server);
455455
// save old security context, test fixture can only work with one session
@@ -546,7 +546,7 @@ public void ResendData(bool updateValues, uint queueSize)
546546
//If sampling groups are used, samplingInterval needs to be waited before values are queued
547547
if (m_fixture.UseSamplingGroupsInReferenceNodeManager)
548548
{
549-
Thread.Sleep((int)(100.0 * 1.1));
549+
await Task.Delay((int)(100.0 * 1.1));
550550
}
551551
UpdateValues(testSet);
552552
}

0 commit comments

Comments
 (0)