Skip to content

Commit

Permalink
fix: select output correctly when using diff
Browse files Browse the repository at this point in the history
  • Loading branch information
majori committed Aug 27, 2024
1 parent 1f68651 commit 06e5f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/recipe/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (re *Recipe) RunTests() []error {
break
} else {
if !bytes.Equal(tFile.Content, file.Content) {
errors[i] = fmt.Errorf("%w for file '%s':\n%s", ErrTestContentMismatch, key, diff.Diff(string(tFile.Content), string(file.Content)))
errors[i] = fmt.Errorf("%w for file '%s':\n%s", ErrTestContentMismatch, key, diff.Diff(string(file.Content), string(tFile.Content)))
break
}
}
Expand Down

0 comments on commit 06e5f95

Please sign in to comment.