Skip to content

Commit

Permalink
fix: Reduced the wait between the two executions as some times the fi…
Browse files Browse the repository at this point in the history
…rst operation already is finished.
  • Loading branch information
chrisdutz committed Dec 4, 2023
1 parent 08dcb72 commit edbce97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plc4go/pkg/api/cache/PlcConnectionCache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ func TestPlcConnectionCache_MultipleConcurrentConnectionRequests(t *testing.T) {
"ping-success",
}, 1)

time.Sleep(1 * time.Millisecond)
// Sleep for a 1000th of a millisecond.
time.Sleep(1000 * time.Nanosecond)

// Almost instantly request the same connection for a second time.
// As the connection takes 100ms, the second connection request will come
Expand Down

0 comments on commit edbce97

Please sign in to comment.