From 5c4f78796bc656cefa5c4100d151cb4d48fade7a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 20 Apr 2016 09:52:53 -0700 Subject: [PATCH] helper/resource: don't need to id-only check if no test steps --- helper/resource/testing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/resource/testing.go b/helper/resource/testing.go index f3f125ad15..9d6c363ec8 100644 --- a/helper/resource/testing.go +++ b/helper/resource/testing.go @@ -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.") }