You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2023/06/16 12:37:17 UTC
[plc4x] branch develop updated: test(plc4go/cbus): fix failing test (part 4)
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 66018da12b test(plc4go/cbus): fix failing test (part 4)
66018da12b is described below
commit 66018da12becccaaa187c0e18e459115824ed96b
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Jun 16 14:37:10 2023 +0200
test(plc4go/cbus): fix failing test (part 4)
---
plc4go/internal/cbus/Connection_test.go | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/plc4go/internal/cbus/Connection_test.go b/plc4go/internal/cbus/Connection_test.go
index 0f54b08d3c..42671b3a4b 100644
--- a/plc4go/internal/cbus/Connection_test.go
+++ b/plc4go/internal/cbus/Connection_test.go
@@ -777,6 +777,7 @@ func TestConnection_fireConnectionError(t *testing.T) {
subscribers []*Subscriber
tm transactions.RequestTransactionManager
configuration Configuration
+ driverContext DriverContext
connectionId string
tracer tracer.Tracer
}
@@ -810,6 +811,9 @@ func TestConnection_fireConnectionError(t *testing.T) {
},
{
name: "notified connect",
+ fields: fields{
+ driverContext: driverContextForTesting(),
+ },
setup: func(t *testing.T, fields *fields, args *args) {
_options := testutils.EnrichOptionsWithOptionsForTesting(t)
transport := test.NewTransport(_options...)
@@ -838,7 +842,7 @@ func TestConnection_fireConnectionError(t *testing.T) {
subscribers: tt.fields.subscribers,
tm: tt.fields.tm,
configuration: tt.fields.configuration,
- driverContext: driverContextForTesting(),
+ driverContext: tt.fields.driverContext,
connectionId: tt.fields.connectionId,
tracer: tt.fields.tracer,
log: testutils.ProduceTestingLogger(t),