Skip to content

Commit

Permalink
test(plc4go): fix panic on test validation
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Dec 4, 2023
1 parent 84d77e7 commit ba0fcf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plc4go/pkg/api/cache/PlcConnectionCache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ func executeAndTestReadFromPlc(t *testing.T, cache plcConnectionCache, connectio
// In the log we should see one "Successfully connected" entry.
if len(traces) != len(expectedTraceEntries) {
t.Errorf("Expected %d 'Successfully connected' entries in the log but got %d", len(expectedTraceEntries), len(traces))
ch <- false
return
}
for i, expectedTraceEntry := range expectedTraceEntries {
currentTraceEntry := traces[i].Operation + "-" + traces[i].Message
Expand Down

0 comments on commit ba0fcf6

Please sign in to comment.