Skip to content

Commit

Permalink
Better wording (elastic#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator authored Oct 15, 2020
1 parent 876a249 commit 2f9fb6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/testrunner/runners/pipeline/test_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func writeTestResult(testCasePath string, result *testResult) error {
}

func compareResults(testCasePath string, result *testResult) error {
current, err := marshalTestResult(result)
actual, err := marshalTestResult(result)
if err != nil {
return errors.Wrap(err, "marshalling test result failed")
}
Expand All @@ -52,9 +52,9 @@ func compareResults(testCasePath string, result *testResult) error {
return errors.Wrap(err, "reading expected test result failed")
}

report := diff.Diff(string(expected), string(current))
report := diff.Diff(string(expected), string(actual))
if report != "" {
fmt.Println("Expected results are different from current ones:")
fmt.Println("Expected results are different from actual ones:")
fmt.Println(report)
return errTestCaseFailed
}
Expand Down

0 comments on commit 2f9fb6c

Please sign in to comment.