updated some of the tests to use t.Parallel

This commit is contained in:
Gani Georgiev committed 2024-01-03 04:30:20 +02:00
1 parent 0599955676
commit 8f625daa2f
46 files changed
+374

No files matched your search

+4
View File
@@ -6,6 +6,8 @@ import (
)
func TestGetDefaultRetryInterval(t *testing.T) {
t.Parallel()
if i := getDefaultRetryInterval(-1); i.Milliseconds() != 1000 {
t.Fatalf("Expected 1000ms, got %v", i)
}
@@ -20,6 +22,8 @@ func TestGetDefaultRetryInterval(t *testing.T) {
}
func TestBaseLockRetry(t *testing.T) {
t.Parallel()
scenarios := []struct {
err error
failUntilAttempt int