mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
test: remove spurious print statements (#20503)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user