Skip to content

Commit 024ac49

Browse files
committed
minimize diff
1 parent 42f36b7 commit 024ac49

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

helper/resource/testing_new_import_state.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ func testStepNewImportState(ctx context.Context, t testing.T, helper *plugintest
3939
}
4040
}
4141

42-
resourceName := step.ResourceName
43-
if resourceName == "" {
44-
t.Fatal("ResourceName is required for an import state test")
45-
}
46-
4742
configRequest := teststep.PrepareConfigurationRequest{
4843
Directory: step.ConfigDirectory,
4944
File: step.ConfigFile,
@@ -56,6 +51,11 @@ func testStepNewImportState(ctx context.Context, t testing.T, helper *plugintest
5651

5752
testStepConfig := teststep.Configuration(configRequest)
5853

54+
resourceName := step.ResourceName
55+
if resourceName == "" {
56+
t.Fatal("ResourceName is required for an import state test")
57+
}
58+
5959
// get state from check sequence
6060
var state *terraform.State
6161
var err error

0 commit comments

Comments
 (0)