From e8036aa1711cb6753a387c37391697362f1f2340 Mon Sep 17 00:00:00 2001 From: "ALTERNATE-DEV\\Archie" Date: Thu, 28 Nov 2024 10:32:54 -0700 Subject: [PATCH] Give some time for the server to create the Diagnostic items and insert them into the object model --- Tests/Opc.Ua.Client.Tests/DurableSubscriptionTest.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/Opc.Ua.Client.Tests/DurableSubscriptionTest.cs b/Tests/Opc.Ua.Client.Tests/DurableSubscriptionTest.cs index 7f45a9bea..f36db7b1a 100644 --- a/Tests/Opc.Ua.Client.Tests/DurableSubscriptionTest.cs +++ b/Tests/Opc.Ua.Client.Tests/DurableSubscriptionTest.cs @@ -349,6 +349,9 @@ public async Task TestSessionTransfer(bool setSubscriptionDurable) Assert.True(Session.AddSubscription(subscription)); subscription.Create(); + // Give some time to allow for the true browse of items + await Task.Delay(500).ConfigureAwait(false); + Dictionary desiredNodeIds = GetDesiredNodeIds(subscription.Id); Dictionary initialValues = GetValues(desiredNodeIds);