Skip to content

Commit

Permalink
fix: t.Fatal/t.Fatalf typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tokongs committed Aug 20, 2024
1 parent 13ce192 commit 8f109c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions gazelle/manifest/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 8f109c6

Please sign in to comment.