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 e5dffdd797 test(plc4go): fixed failed reader test
e5dffdd797 is described below

commit e5dffdd797285dc80fcc27f7333964b05780620d
Author: Sebastian Rühl <sru...@apache.org>
AuthorDate: Wed Jun 21 18:19:00 2023 +0200

    test(plc4go): fixed failed reader test
---
 plc4go/internal/cbus/Reader_test.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/plc4go/internal/cbus/Reader_test.go 
b/plc4go/internal/cbus/Reader_test.go
index d27b47f835..e3d9e9caad 100644
--- a/plc4go/internal/cbus/Reader_test.go
+++ b/plc4go/internal/cbus/Reader_test.go
@@ -372,7 +372,9 @@ func TestReader_readSync(t *testing.T) {
                                })
                                fields.messageCodec = codec
 
-                               args.ctx = testutils.TestContext(t)
+                               timeout, cancel := 
context.WithCancel(testutils.TestContext(t))
+                               cancel()
+                               args.ctx = timeout
                        },
                        resultEvaluator: func(t *testing.T, results chan 
apiModel.PlcReadRequestResult) bool {
                                timer := time.NewTimer(2 * time.Second)

Reply via email to