Skip to content

Commit

Permalink
Fixing the "date expired" tests
Browse files Browse the repository at this point in the history
  • Loading branch information
silverdaz committed Jul 11, 2024
1 parent d9fd5a5 commit 131339c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/expiration.bats
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ function teardown() {

# Alice decrypts it
export C4GH_PASSPHRASE=${ALICE_PASSPHRASE}
crypt4gh decrypt --sk ${ALICE_SECKEY} < $TESTFILES/message.c4gh 2>$TESTFILES/message.alice.error >$TESTFILES/message.alice.received
run --separate-stderr crypt4gh decrypt --sk ${ALICE_SECKEY} < $TESTFILES/message.c4gh

run grep -q 'Expired on' $TESTFILES/message.alice.error
[ "$status" -eq 0 ]
[[ "$stderr" =~ "Expired on" ]]

unset C4GH_PASSPHRASE
}
Expand Down

0 comments on commit 131339c

Please sign in to comment.