Skip to content

Commit c49bfd4

Browse files
committed
s3 credentials: add 10s timeout in test
1 parent 6764345 commit c49bfd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backends/s3/credentials_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"os"
88
"path/filepath"
99
"testing"
10+
"time"
1011

1112
"github.com/PowerDNS/simpleblob/backends/s3"
1213
"github.com/PowerDNS/simpleblob/backends/s3/s3testing"
@@ -45,7 +46,7 @@ func TestFileSecretsCredentials(t *testing.T) {
4546
}
4647

4748
ctx := context.Background()
48-
ctx, cancel := context.WithCancel(ctx)
49+
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
4950
defer cancel()
5051

5152
// Create server

0 commit comments

Comments
 (0)