Added a TODO for 'Check' function

This commit is contained in:
vishalnayak 2016-04-06 12:51:49 -04:00
parent a0471471cd
commit 5c640601eb

View file

@ -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)