Skip to content

Commit

Permalink
Fix logger Fatalf message
Browse files Browse the repository at this point in the history
This commit fixes the typos in the package termination_test where
the fix is transforming Errot to Error
  • Loading branch information
bhujangr authored and tekton-robot committed Jul 21, 2023
1 parent 443e380 commit d0baae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/termination/write_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func TestExistingFile(t *testing.T) {
}}

if err := termination.WriteMessage(tmpFile.Name(), output); err != nil {
logger.Fatalf("Errot while writing message: %s", err)
logger.Fatalf("Error while writing message: %s", err)
}

output = []result.RunResult{{
Expand All @@ -56,7 +56,7 @@ func TestExistingFile(t *testing.T) {
}}

if err := termination.WriteMessage(tmpFile.Name(), output); err != nil {
logger.Fatalf("Errot while writing message: %s", err)
logger.Fatalf("Error while writing message: %s", err)
}

if fileContents, err := os.ReadFile(tmpFile.Name()); err != nil {
Expand Down

0 comments on commit d0baae2

Please sign in to comment.