Skip to content

Commit 629b7ba

Browse files
authored
Fix reporting of unexpected selections in integration tests (#3662)
Expected and actual selection were swapped in the error message.
2 parents c08a5fe + 43e04fe commit 629b7ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/integration/components/view_driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ func (self *ViewDriver) assertLines(offset int, matchers ...*TextMatcher) *ViewD
263263
return false, fmt.Sprintf(
264264
"Unexpected selection in view '%s'. Expected %s to be selected but got %s.\nExpected selected lines:\n---\n%s\n---\n\nActual selected lines:\n---\n%s\n---\n",
265265
view.Name(),
266-
formatLineRange(startIdx, endIdx),
267266
formatLineRange(expectedStartIdx, expectedEndIdx),
267+
formatLineRange(startIdx, endIdx),
268268
strings.Join(expectedSelectedLines, "\n"),
269269
strings.Join(lines, "\n"),
270270
)

0 commit comments

Comments
 (0)