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/04/12 14:59:42 UTC
[plc4x] branch develop updated: test(plc4go/cbus): fix network terminal levels test
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 1b19c1b035 test(plc4go/cbus): fix network terminal levels test
1b19c1b035 is described below
commit 1b19c1b0358abd1325880644703592d60fbd3ea7
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed Apr 12 16:59:33 2023 +0200
test(plc4go/cbus): fix network terminal levels test
---
plc4go/internal/cbus/CBusMessageMapper_test.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plc4go/internal/cbus/CBusMessageMapper_test.go b/plc4go/internal/cbus/CBusMessageMapper_test.go
index d97bd0ea96..17ae1f8f0b 100644
--- a/plc4go/internal/cbus/CBusMessageMapper_test.go
+++ b/plc4go/internal/cbus/CBusMessageMapper_test.go
@@ -1172,7 +1172,7 @@ func TestMapEncodedReply(t *testing.T) {
},
},
{
- name: "CALDataIdentifyReplyExactly (terminal levels)",
+ name: "CALDataIdentifyReplyExactly (network terminal levels)",
args: args{
transaction: func() spi.RequestTransaction {
transactionManager := spi.NewRequestTransactionManager(1)
@@ -1183,7 +1183,7 @@ func TestMapEncodedReply(t *testing.T) {
return transaction
}(),
encodedReply: func() readWriteModel.EncodedReplyCALReply {
- command := readWriteModel.NewIdentifyReplyCommandTerminalLevels([]byte{1, 2, 3, 4}, 1)
+ command := readWriteModel.NewIdentifyReplyCommandNetworkTerminalLevels([]byte{1, 2, 3, 4}, 1)
calDataIdentify := readWriteModel.NewCALDataIdentifyReply(readWriteModel.Attribute_DSIStatus, command, readWriteModel.CALCommandTypeContainer_CALCommandIdentify, nil, nil)
calReplyLong := readWriteModel.NewCALReplyLong(0, readWriteModel.NewUnitAddress(1), readWriteModel.NewBridgeAddress(2), readWriteModel.NewSerialInterfaceAddress(3), nil, nil, 0, calDataIdentify, nil, nil)
return readWriteModel.NewEncodedReplyCALReply(calReplyLong, 0, nil, nil)