Skip to content

Commit

Permalink
fix(plc4go/spi): ignore empty declaration of PLC4X_TEST_RECEIVE_TIMEO…
Browse files Browse the repository at this point in the history
…UT_MS
  • Loading branch information
sruehl committed Jun 21, 2023
1 parent c77258a commit 2e65a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plc4go/spi/testutils/TestUtils.go
Expand Up @@ -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)
Expand Down

0 comments on commit 2e65a27

Please sign in to comment.