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 2021/05/08 16:03:34 UTC
[plc4x] 01/06: pl4go: fixed issue in DriverTestRunner.go by adding
delay after setup steps
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
commit b3b023f4773b57fd061fc52592eb0fe14b1c43c2
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Sat May 8 16:39:07 2021 +0200
pl4go: fixed issue in DriverTestRunner.go by adding delay after setup steps
+ in some protocol we run too fast into the actual test steps so we add a artificial delay to give the protocol some time to settle
---
plc4go/internal/plc4go/spi/testutils/DriverTestRunner.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plc4go/internal/plc4go/spi/testutils/DriverTestRunner.go b/plc4go/internal/plc4go/spi/testutils/DriverTestRunner.go
index 81c17cd..967d659 100644
--- a/plc4go/internal/plc4go/spi/testutils/DriverTestRunner.go
+++ b/plc4go/internal/plc4go/spi/testutils/DriverTestRunner.go
@@ -87,6 +87,8 @@ func (m DriverTestsuite) Run(driverManager plc4go.PlcDriverManager, testcase Tes
if err != nil {
return errors.Wrap(err, "error in setup step "+testStep.name)
}
+ // We sleep a bit to not run too fast into the post setup steps and give connections a bit time to settle built up
+ time.Sleep(time.Second)
}
// Run the actual scenario steps