This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new ba0fcf6693 test(plc4go): fix panic on test validation
ba0fcf6693 is described below

commit ba0fcf66937c4e9927e0e8dda1786deed68b1565
Author: Sebastian Rühl <[email protected]>
AuthorDate: Mon Dec 4 13:40:20 2023 +0100

    test(plc4go): fix panic on test validation
---
 plc4go/pkg/api/cache/PlcConnectionCache_test.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plc4go/pkg/api/cache/PlcConnectionCache_test.go 
b/plc4go/pkg/api/cache/PlcConnectionCache_test.go
index 332b7d0385..851329273f 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

Reply via email to