Skip to content
Snippets Groups Projects

Fixed comparison tests to match errors in Gitaly 16.8

Merged Georges Racinet requested to merge topic/default/gitlab-16.8 into branch/default
2 files
+ 15
10
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -132,7 +132,14 @@
# case when revision does not exist
for path in (b'', b'foo'):
assert_compare_errors(revision=b'be0123ef' * 5, path=path)
# as of Gitaly 16.8, the Gitaly details are
# 'panic: runtime error: invalid memory address or \
# nil pointer dereference'
# (used to be exit code 128, clearly rewritten from subprocess
# into native Golang. However it would be over-ridiculous to
# mimic that one.
assert_compare_errors(revision=b'be0123ef' * 5, path=path,
same_details=False)
# case when file does not exist or does not match
assert_compare(revision=b'branch/default', path=b'no-such-file')
Loading