Skip to content

Commit 9c6616f

Browse files
committed
Nicer version check
1 parent 7847b70 commit 9c6616f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helper/resource/testing_new_import_state.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ func importStatePreconditions(t testing.T, helper *plugintest.Helper, step TestS
457457
t.Helper()
458458

459459
kind := step.ImportStateKind
460-
versionUnderTest := *helper.TerraformVersion()
461-
resourceIdentityMinimumVersion := version.Must(version.NewVersion("1.12.0-beta1"))
460+
versionUnderTest := *helper.TerraformVersion().Core()
461+
resourceIdentityMinimumVersion := version.Must(version.NewVersion("1.12.0"))
462462

463463
// Instead of calling [t.Fatal], we return an error. This package's unit tests can use [TestStep.ExpectError] to match
464464
// on the error message. An alternative, [plugintest.TestExpectTFatal], does not have access to logged error messages,

0 commit comments

Comments
 (0)