tests/authorization: Simplify assertion

Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
This commit is contained in:
Robert Hensing 2023-02-10 13:03:24 +01:00 committed by GitHub
parent 72b18f05a2
commit 7908a41631
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,8 +51,8 @@
set -x
cd ~
echo 5mgtDj0ohrWkT50TLR0f4tIIxY > four;
(! diff $(nix store add-file four) four 2>&1) | grep -F "cannot open connection to remote store"
(! diff $(nix store add-file four) four 2>&1) | grep -F "Connection reset by peer"
(! nix store add-file four 2>&1) | grep -F "cannot open connection to remote store"
(! nix store add-file four 2>&1) | grep -F "Connection reset by peer"
! [[ -e ${pathFour} ]]
' 1>&2
""")