diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-06-14 13:26:14 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-06-14 13:26:14 +0200 |
commit | 43e04febee93921462fd334407702ca8afcd9d7b (patch) | |
tree | 5d8aa4c4082666af742f834db3563e9c2febed95 /pkg | |
parent | c08a5fe4e79cc0b3f1810dd1c6a004a83cfa15f6 (diff) |
Fix reporting of unexpected selections in integration tests
Expected and actual selection were swapped in the error message.
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/integration/components/view_driver.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/integration/components/view_driver.go b/pkg/integration/components/view_driver.go index e40c0c5f1..b6f917603 100644 --- a/pkg/integration/components/view_driver.go +++ b/pkg/integration/components/view_driver.go @@ -263,8 +263,8 @@ func (self *ViewDriver) assertLines(offset int, matchers ...*TextMatcher) *ViewD return false, fmt.Sprintf( "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", view.Name(), - formatLineRange(startIdx, endIdx), formatLineRange(expectedStartIdx, expectedEndIdx), + formatLineRange(startIdx, endIdx), strings.Join(expectedSelectedLines, "\n"), strings.Join(lines, "\n"), ) |