diff --git a/osprepare/os_release_test.go b/osprepare/os_release_test.go index 992c071eb..327d67311 100644 --- a/osprepare/os_release_test.go +++ b/osprepare/os_release_test.go @@ -45,6 +45,6 @@ func TestGetOsRelease(t *testing.T) { func TestParseReleaseFileNonExistent(t *testing.T) { if res := ParseReleaseFile(NON_EXISTENT_FILE); res != nil { - t.Fatal("Expected nil, got %v\n", res) + t.Fatalf("Expected nil, got %v\n", res) } } diff --git a/osprepare/versions_test.go b/osprepare/versions_test.go index ae84f56c0..46bad0450 100644 --- a/osprepare/versions_test.go +++ b/osprepare/versions_test.go @@ -43,7 +43,7 @@ func TestGetQemu(t *testing.T) { // this tests is expected to pass func TestVersionLessThanEqualVersion(t *testing.T) { if res := VersionLessThan(MinQemuVersion, MinQemuVersion); res != false { - t.Fatal("expected false, got %v\n", res) + t.Fatalf("expected false, got %v\n", res) } } @@ -52,7 +52,7 @@ func TestVersionLessThanEqualVersion(t *testing.T) { // this tests is expected to pass func TestVersionLessThanGreaterVersion(t *testing.T) { if res := VersionLessThan(MinQemuVersion, "0.0.1"); res != false { - t.Fatal("expected false, got %v\n", res) + t.Fatalf("expected false, got %v\n", res) } } @@ -61,6 +61,6 @@ func TestVersionLessThanGreaterVersion(t *testing.T) { // this tests is expected to pass func TestVersionLessThanLowerVersion(t *testing.T) { if res := VersionLessThan("0.0.1", MinQemuVersion); res != true { - t.Fatal("expected true, got %v\n", res) + t.Fatalf("expected true, got %v\n", res) } }