Skip to content

Commit

Permalink
only clear test tokens (fixes #2110)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLKwong committed Mar 20, 2021
1 parent 411af2a commit 6e8ba91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/message.bats
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ load test-helper
}

@test "$clinom message slack apitoken (create invalid token)" {
"${clicmd}" config delete xoxp-fake-token
run "${clicmd}" message slack apitoken fake-token
bash -c [[ run "${clicmd}" config delete xoxp-fake-token && "${clicmd}" message slack apitoken fake-token ]]
assert_output --partial 'invalid token'
"${clicmd}" config delete xoxp-fake-token
}
Expand Down

0 comments on commit 6e8ba91

Please sign in to comment.