mirror of
https://github.com/kopia/kopia.git
synced 2026-10-24 15:18:48 -04:00
[cleanup] prefer t.Logf over log.Printf in test (#792)
This commit is contained in:
1 parent
8d907c937c
commit
6b245f972c
1 file changed
+1
-2
@@ -5,7 +5,6 @@ import (
|
||||
"crypto/rand"
|
||||
"crypto/sha1"
|
||||
"fmt"
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
"os"
|
||||
@@ -362,7 +361,7 @@ func createMinioSessionToken(t *testutil.RetriableT, kopiaUserName, kopiaUserPas
|
||||
t.Fatalf("couldn't find aws creds in aws assume role response")
|
||||
}
|
||||
|
||||
log.Printf("created session token with assume role: expiration: %s", result.Credentials.Expiration)
|
||||
t.Logf("created session token with assume role: expiration: %s", result.Credentials.Expiration)
|
||||
|
||||
return *result.Credentials.AccessKeyId, *result.Credentials.SecretAccessKey, *result.Credentials.SessionToken
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user