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/12/04 14:25:17 UTC
(plc4x) branch develop updated: test(plc4go): fix flaky test by increasing sleep time
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 3e18152297 test(plc4go): fix flaky test by increasing sleep time
3e18152297 is described below
commit 3e1815229773c4b8745038a6e0bb381100e30a42
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Mon Dec 4 15:25:08 2023 +0100
test(plc4go): fix flaky test by increasing sleep time
---
plc4go/pkg/api/cache/PlcConnectionCache_test.go | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/plc4go/pkg/api/cache/PlcConnectionCache_test.go b/plc4go/pkg/api/cache/PlcConnectionCache_test.go
index 851329273f..278488d366 100644
--- a/plc4go/pkg/api/cache/PlcConnectionCache_test.go
+++ b/plc4go/pkg/api/cache/PlcConnectionCache_test.go
@@ -379,8 +379,7 @@ func TestPlcConnectionCache_MultipleConcurrentConnectionRequests(t *testing.T) {
"ping-success",
}, 1)
- // Sleep for a 1000th of a millisecond.
- time.Sleep(1000 * time.Nanosecond)
+ time.Sleep(10 * time.Millisecond)
// Almost instantly request the same connection for a second time.
// As the connection takes 100ms, the second connection request will come