Skip to content

Commit

Permalink
Enable TestDeterministicGuidNodes
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscantero committed Dec 16, 2023
1 parent 81e2e78 commit eff13d6
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions tests/GuidNodesTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace OpcPlc.Tests;
namespace OpcPlc.Tests;

using FluentAssertions;
using NUnit.Framework;
Expand All @@ -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();
}
}

0 comments on commit eff13d6

Please sign in to comment.