mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
test: improve failure message
Co-Authored-By: schmichael <michael.schurter@gmail.com>
This commit is contained in:
@@ -835,7 +835,7 @@ func TestTaskRunner_BlockForVault(t *testing.T) {
|
||||
// Check the token was revoked
|
||||
testutil.WaitForResult(func() (bool, error) {
|
||||
if len(vaultClient.StoppedTokens()) != 1 {
|
||||
return false, fmt.Errorf("Expected a stopped token: %v", vaultClient.StoppedTokens())
|
||||
return false, fmt.Errorf("Expected a stopped token %q but found: %v", token, vaultClient.StoppedTokens())
|
||||
}
|
||||
|
||||
if a := vaultClient.StoppedTokens()[0]; a != token {
|
||||
|
||||
Reference in New Issue
Block a user