mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
Added a TODO for 'Check' function
This commit is contained in:
parent
a0471471cd
commit
5c640601eb
1 changed files with 4 additions and 0 deletions
|
|
@ -257,6 +257,10 @@ func Test(t TestT, c TestCase) {
|
|||
|
||||
// Either the 'err' was nil or if an error was expected, it was set to nil.
|
||||
// Call the 'Check' function if there is one.
|
||||
//
|
||||
// TODO: This works perfectly for now, but it would be better if 'Check'
|
||||
// function takes in both the response object and the error, and decide on
|
||||
// the action on its own.
|
||||
if err == nil && s.Check != nil {
|
||||
// Call the test method
|
||||
err = s.Check(resp)
|
||||
|
|
|
|||
Loading…
Reference in a new issue