helper/resource: don't need to id-only check if no test steps

This commit is contained in:
Mitchell Hashimoto 2016-04-20 09:52:53 -07:00
parent a285c04dc9
commit 5c4f78796b
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 2 additions and 2 deletions

View File

@ -195,8 +195,8 @@ func Test(t TestT, c TestCase) {
}
}
// If we never checked an id-only refresh, it is a failure
if !errored && idRefreshCheck == nil {
// If we never checked an id-only refresh, it is a failure.
if !errored && len(c.Steps) > 0 && idRefreshCheck == nil {
t.Error("ID-only refresh check never ran.")
}