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/05/10 13:52:34 UTC
[plc4x] branch develop updated: test(plc4go/spi): fix test failing on windows
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 26a7ba3440 test(plc4go/spi): fix test failing on windows
26a7ba3440 is described below
commit 26a7ba34403cc5792afb57c09aba6bea0ffbe59b
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed May 10 15:52:19 2023 +0200
test(plc4go/spi): fix test failing on windows
---
plc4go/spi/transports/pcap/Transport_test.go | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/plc4go/spi/transports/pcap/Transport_test.go b/plc4go/spi/transports/pcap/Transport_test.go
index 0474c410ee..91fda11c7f 100644
--- a/plc4go/spi/transports/pcap/Transport_test.go
+++ b/plc4go/spi/transports/pcap/Transport_test.go
@@ -182,6 +182,11 @@ func TestTransportInstance_Connect(t *testing.T) {
if err := m.Connect(); (err != nil) != tt.wantErr {
t.Errorf("Connect() error = %v, wantErr %v", err, tt.wantErr)
}
+ t.Cleanup(func() {
+ if err := m.Close(); err != nil {
+ t.Logf("Error during close %v", err)
+ }
+ })
})
}
}