test: remove spurious print statements (#20503)

This commit is contained in:
Michael Schurter
2024-05-01 09:47:56 -07:00
committed by GitHub
parent 77dc74a301
commit 3aefc010d7
4 changed files with 0 additions and 7 deletions

View File

@@ -1053,7 +1053,6 @@ func TestDebug_EventStream(t *testing.T) {
archive := extractArchiveName(testOut.output)
require.NotEmpty(t, archive)
fmt.Println(archive)
// TODO dmay: verify evenstream.json output file contains expected content
}

View File

@@ -5,7 +5,6 @@ package structs
import (
"errors"
"fmt"
"testing"
"time"
@@ -262,7 +261,6 @@ func TestJobConfig_Validate_MaxClientDisconnect(t *testing.T) {
err := job.Validate()
must.Error(t, errors.Unwrap(err))
fmt.Println("what?", err.Error(), "what?")
must.StrContains(t, err.Error(), "max_client_disconnect cannot be negative")
must.StrContains(t, err.Error(), "Task group cannot be configured with both max_client_disconnect and stop_after_client_disconnect")

View File

@@ -4,7 +4,6 @@
package reconnectingpicker
import (
"fmt"
"testing"
"time"
@@ -262,7 +261,6 @@ func TestPickReconnectingAlloc_BestScore(t *testing.T) {
func TestPickReconnectingAlloc_LongestRunning(t *testing.T) {
rp := New(hclog.NewNullLogger())
now := time.Now()
fmt.Println(now)
taskGroupNoLeader := &structs.TaskGroup{
Name: "taskGroupNoLeader",
Tasks: []*structs.Task{

View File

@@ -819,8 +819,6 @@ func TestSystemSched_JobModify_RemoveDC(t *testing.T) {
node2.Datacenter = "dc2"
require.NoError(t, h.State.UpsertNode(structs.MsgTypeTestSetup, h.NextIndex(), node2))
fmt.Println("DC1 node: ", node1.ID)
fmt.Println("DC2 node: ", node2.ID)
nodes := []*structs.Node{node1, node2}
// Generate a fake job with allocations