From 3aefc010d73e79f0c00d2eafa06cf26096e7d2b1 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Wed, 1 May 2024 09:47:56 -0700 Subject: [PATCH] test: remove spurious print statements (#20503) --- command/operator_debug_test.go | 1 - nomad/structs/group_test.go | 2 -- scheduler/reconnecting_picker/reconnecting_picker_test.go | 2 -- scheduler/scheduler_system_test.go | 2 -- 4 files changed, 7 deletions(-) diff --git a/command/operator_debug_test.go b/command/operator_debug_test.go index dbe3720e6..8be0c468f 100644 --- a/command/operator_debug_test.go +++ b/command/operator_debug_test.go @@ -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 } diff --git a/nomad/structs/group_test.go b/nomad/structs/group_test.go index de40644c2..104230d3e 100644 --- a/nomad/structs/group_test.go +++ b/nomad/structs/group_test.go @@ -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") diff --git a/scheduler/reconnecting_picker/reconnecting_picker_test.go b/scheduler/reconnecting_picker/reconnecting_picker_test.go index 01bbf213c..ececa81fc 100644 --- a/scheduler/reconnecting_picker/reconnecting_picker_test.go +++ b/scheduler/reconnecting_picker/reconnecting_picker_test.go @@ -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{ diff --git a/scheduler/scheduler_system_test.go b/scheduler/scheduler_system_test.go index 62ddb780a..ef0fc4919 100644 --- a/scheduler/scheduler_system_test.go +++ b/scheduler/scheduler_system_test.go @@ -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