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/21 08:59:33 UTC

[plc4x] branch develop updated: fix(plc4go/spi): ignore empty declaration of PLC4X_TEST_RECEIVE_TIMEOUT_MS

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 2e65a27590 fix(plc4go/spi): ignore empty declaration of PLC4X_TEST_RECEIVE_TIMEOUT_MS
2e65a27590 is described below

commit 2e65a2759055899e289466d3cf0dbb49b200e188
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed Jun 21 10:59:20 2023 +0200

    fix(plc4go/spi): ignore empty declaration of PLC4X_TEST_RECEIVE_TIMEOUT_MS
---
 plc4go/spi/testutils/TestUtils.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4go/spi/testutils/TestUtils.go b/plc4go/spi/testutils/TestUtils.go
index 52651d8ead..c2f3f0fa6e 100644
--- a/plc4go/spi/testutils/TestUtils.go
+++ b/plc4go/spi/testutils/TestUtils.go
@@ -150,7 +150,7 @@ func getOrLeaveBool(key string, setting *bool) {
 }
 
 func getOrLeaveDuration(key string, setting *time.Duration) {
-	if env, ok := os.LookupEnv(key); ok {
+	if env, ok := os.LookupEnv(key); ok && env != "" {
 		parsedDuration, err := strconv.ParseInt(env, 10, 64)
 		if err != nil {
 			panic(err)