diff --git a/plc4go/pkg/api/cache/PlcConnectionCache_test.go b/plc4go/pkg/api/cache/PlcConnectionCache_test.go index 332b7d03853..851329273f8 100644 --- a/plc4go/pkg/api/cache/PlcConnectionCache_test.go +++ b/plc4go/pkg/api/cache/PlcConnectionCache_test.go @@ -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