satellite: don't use fmt.Print in tests
Change-Id: Ia10450240ad075c9d78614adff9164f292fb1fa0
This commit is contained in:
parent
afa5c54a35
commit
28ee6f024c
@ -164,7 +164,7 @@ func TestForgotPasswordRecaptcha(t *testing.T) {
|
||||
|
||||
bodyBytes, err := io.ReadAll(result.Body)
|
||||
require.NoError(t, err)
|
||||
fmt.Println(string(bodyBytes))
|
||||
t.Log(string(bodyBytes))
|
||||
|
||||
require.NoError(t, result.Body.Close())
|
||||
|
||||
|
@ -8,7 +8,6 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
@ -258,7 +257,7 @@ func TestDeleteAccount(t *testing.T) {
|
||||
|
||||
err := quick.CheckEqual(expectedHandler, actualHandler, config)
|
||||
if err != nil {
|
||||
fmt.Printf("%+v\n", err)
|
||||
t.Logf("%+v\n", err)
|
||||
var cerr *quick.CheckEqualError
|
||||
require.True(t, errors.As(err, &cerr))
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
package gracefulexit_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"testing"
|
||||
"time"
|
||||
@ -362,7 +361,7 @@ func generateExitedNodes(t *testing.T, ctx *testcontext.Context, db satellite.DB
|
||||
nodeID := generateNodeIDFromPostiveInt(t, i)
|
||||
exitedNodeIDs = append(exitedNodeIDs, nodeID)
|
||||
if _, ok := nodeIDsMap[nodeID]; ok {
|
||||
fmt.Printf("this %v already exists\n", nodeID.Bytes())
|
||||
t.Logf("this %v already exists\n", nodeID.Bytes())
|
||||
}
|
||||
nodeIDsMap[nodeID] = struct{}{}
|
||||
|
||||
@ -430,7 +429,7 @@ func TestGracefulExit_DeleteAllFinishedTransferQueueItems_batch(t *testing.T) {
|
||||
nodeID := generateNodeIDFromPostiveInt(t, i)
|
||||
exitedNodeIDs = append(exitedNodeIDs, nodeID)
|
||||
if _, ok := nodeIDsMap[nodeID]; ok {
|
||||
fmt.Printf("this %v already exists\n", nodeID.Bytes())
|
||||
t.Logf("this %v already exists\n", nodeID.Bytes())
|
||||
}
|
||||
nodeIDsMap[nodeID] = struct{}{}
|
||||
|
||||
|
@ -1682,7 +1682,7 @@ func TestEndpoint_Object_With_StorageNodes(t *testing.T) {
|
||||
objectName := "file1"
|
||||
|
||||
apiKey := planet.Uplinks[0].APIKey[planet.Satellites[0].ID()]
|
||||
fmt.Println(apiKey)
|
||||
t.Log(apiKey)
|
||||
bucketsService := planet.Satellites[0].API.Buckets.Service
|
||||
|
||||
bucket := buckets.Bucket{
|
||||
|
Loading…
Reference in New Issue
Block a user