From eff13d665cad520e6313f5056c7ea10e515a0c53 Mon Sep 17 00:00:00 2001 From: Luis Cantero Date: Sat, 16 Dec 2023 22:19:37 +0100 Subject: [PATCH] Enable TestDeterministicGuidNodes --- tests/GuidNodesTests.cs | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/tests/GuidNodesTests.cs b/tests/GuidNodesTests.cs index 5d9f4879..a4c4dfa5 100644 --- a/tests/GuidNodesTests.cs +++ b/tests/GuidNodesTests.cs @@ -1,4 +1,4 @@ -namespace OpcPlc.Tests; +namespace OpcPlc.Tests; using FluentAssertions; using NUnit.Framework; @@ -18,16 +18,12 @@ public GuidNodesTests() : base(new[] { "--gn=2" }) public void TestDeterministicGuidNodes() { var deterministicGuidNode = FindNode(ObjectsFolder, Namespaces.OpcPlcApplications, "OpcPlc", "Telemetry", "Deterministic GUID"); - deterministicGuidNode.Should().NotBeNull(); - - // TODO: Fix test. - // Test works locally but fails in the pipeline, the following nodes are not found there. - // Tried adding delays and waiting for web server to start, but that didn't help. - - ////var guidNode1 = FindNode(deterministicGuidNode, Namespaces.OpcPlcApplications, "51b74e55-f2e3-4a4d-b79c-bf57c76ea67c"); - ////guidNode1.Should().NotBeNull(); - - ////var guidNode2 = FindNode(deterministicGuidNode, Namespaces.OpcPlcApplications, "1313895e-c776-4201-b893-e514864c6692"); - ////guidNode2.Should().NotBeNull(); + deterministicGuidNode.Should().NotBeNull(); + + var guidNode1 = FindNode(deterministicGuidNode, Namespaces.OpcPlcApplications, "51b74e55-f2e3-4a4d-b79c-bf57c76ea67c"); + guidNode1.Should().NotBeNull(); + + var guidNode2 = FindNode(deterministicGuidNode, Namespaces.OpcPlcApplications, "1313895e-c776-4201-b893-e514864c6692"); + guidNode2.Should().NotBeNull(); } }