diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b457c411d..42c5bfc89d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,9 @@ A brief description of the categories of changes: ### Changed * Nothing yet +### Fixed +* (gazelle): Fix ncorrect use of `t.Fatal`/`t.Fatalf` in tests. + ### Added * Nothing yet diff --git a/gazelle/manifest/test/test.go b/gazelle/manifest/test/test.go index 506c7d2074..a7647f3f7c 100644 --- a/gazelle/manifest/test/test.go +++ b/gazelle/manifest/test/test.go @@ -33,12 +33,12 @@ import ( func TestGazelleManifestIsUpdated(t *testing.T) { requirementsPath := os.Getenv("_TEST_REQUIREMENTS") if requirementsPath == "" { - t.Fatalf("_TEST_REQUIREMENTS must be set") + t.Fatal("_TEST_REQUIREMENTS must be set") } manifestPath := os.Getenv("_TEST_MANIFEST") if manifestPath == "" { - t.Fatalf("_TEST_MANIFEST must be set") + t.Fatal("_TEST_MANIFEST must be set") } manifestFile := new(manifest.File) @@ -53,7 +53,7 @@ func TestGazelleManifestIsUpdated(t *testing.T) { manifestGeneratorHashPath, err := runfiles.Rlocation( os.Getenv("_TEST_MANIFEST_GENERATOR_HASH")) if err != nil { - t.Fatal("failed to resolve runfiles path of manifest: %v", err) + t.Fatalf("failed to resolve runfiles path of manifest: %v", err) } manifestGeneratorHash, err := os.Open(manifestGeneratorHashPath)