Skip to content

Commit

Permalink
Correctly identify the validation output file
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Jul 14, 2023
1 parent 54100d0 commit 19e6222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestValidate(t *testing.T) {
_, err = lineage.Latest().Validate(data)
req.Error(err, "The data shouldn't be valid for the schema")

outputFileName := filepath.Base(strings.TrimRight(file.Name, ".data.json"))
outputFileName := filepath.Base(strings.TrimSuffix(file.Name, ".data.json"))

_, err = tc.Writer(outputFileName).Write([]byte(err.Error()))
req.NoError(err)
Expand Down

0 comments on commit 19e6222

Please sign in to comment.