Skip to content

Commit

Permalink
Show diagnosticInfos
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscantero committed Sep 21, 2023
1 parent 99e7dc7 commit 94b94b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/SimulatorTestsBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace OpcPlc.Tests;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using System.Threading.Tasks;

/// <summary>
Expand Down Expand Up @@ -107,7 +108,12 @@ private NodeId FindNode(NodeId startingNode, string relativePath)
requestHeader: null,
browsePaths,
out var results,
out _);
out var diagnosticInfos);

if(!results.Any())
{
Console.WriteLine(JsonSerializer.Serialize(diagnosticInfos));
}

var nodeId = results
.Should().ContainSingle("search should contain a result")
Expand Down

0 comments on commit 94b94b7

Please sign in to comment.