From 400363079c986d38b63d23e78cbc5b86bac85713 Mon Sep 17 00:00:00 2001 From: Gregory Man Date: Wed, 21 Oct 2015 15:47:36 +0300 Subject: [PATCH] Make go vet happy --- scheduler/util_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scheduler/util_test.go b/scheduler/util_test.go index 417737dca..e1f455da0 100644 --- a/scheduler/util_test.go +++ b/scheduler/util_test.go @@ -365,11 +365,11 @@ func TestEvictAndPlace_LimitLessThanAllocs(t *testing.T) { } if limit != 0 { - t.Fatal("evictAndReplace() should decremented limit; got %v; want 0", limit) + t.Fatalf("evictAndReplace() should decremented limit; got %v; want 0", limit) } if len(diff.place) != 2 { - t.Fatal("evictAndReplace() didn't insert into diffResult properly: %v", diff.place) + t.Fatalf("evictAndReplace() didn't insert into diffResult properly: %v", diff.place) } } @@ -389,11 +389,11 @@ func TestEvictAndPlace_LimitEqualToAllocs(t *testing.T) { } if limit != 0 { - t.Fatal("evictAndReplace() should decremented limit; got %v; want 0", limit) + t.Fatalf("evictAndReplace() should decremented limit; got %v; want 0", limit) } if len(diff.place) != 4 { - t.Fatal("evictAndReplace() didn't insert into diffResult properly: %v", diff.place) + t.Fatalf("evictAndReplace() didn't insert into diffResult properly: %v", diff.place) } } @@ -584,11 +584,11 @@ func TestEvictAndPlace_LimitGreaterThanAllocs(t *testing.T) { } if limit != 2 { - t.Fatal("evictAndReplace() should decremented limit; got %v; want 2", limit) + t.Fatalf("evictAndReplace() should decremented limit; got %v; want 2", limit) } if len(diff.place) != 4 { - t.Fatal("evictAndReplace() didn't insert into diffResult properly: %v", diff.place) + t.Fatalf("evictAndReplace() didn't insert into diffResult properly: %v", diff.place) } }