From d04c01573c51c2fa09d79b8401bc10d341a8aea1 Mon Sep 17 00:00:00 2001 From: Barrett Clark Date: Mon, 18 Oct 2021 11:11:56 -0500 Subject: [PATCH] Fix iterator in a couple of e2e tests --- internal/cloud/e2e/migrate_state_single_to_tfc_test.go | 2 +- internal/cloud/e2e/migrate_state_tfc_to_other_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cloud/e2e/migrate_state_single_to_tfc_test.go b/internal/cloud/e2e/migrate_state_single_to_tfc_test.go index d251207fe8..ebe85d1b55 100644 --- a/internal/cloud/e2e/migrate_state_single_to_tfc_test.go +++ b/internal/cloud/e2e/migrate_state_single_to_tfc_test.go @@ -172,7 +172,7 @@ func Test_migrate_single_to_tfc(t *testing.T) { lenInput := len(tfCmd.userInput) lenInputOutput := len(tfCmd.postInputOutput) if lenInput > 0 { - for i := 0; i <= lenInput; i++ { + for i := 0; i < lenInput; i++ { input := tfCmd.userInput[i] exp.SendLine(input) // use the index to find the corresponding diff --git a/internal/cloud/e2e/migrate_state_tfc_to_other_test.go b/internal/cloud/e2e/migrate_state_tfc_to_other_test.go index 5c4173d014..08a5e703ab 100644 --- a/internal/cloud/e2e/migrate_state_tfc_to_other_test.go +++ b/internal/cloud/e2e/migrate_state_tfc_to_other_test.go @@ -93,7 +93,7 @@ func Test_migrate_tfc_to_other(t *testing.T) { lenInput := len(tfCmd.userInput) lenInputOutput := len(tfCmd.postInputOutput) if lenInput > 0 { - for i := 0; i <= lenInput; i++ { + for i := 0; i < lenInput; i++ { input := tfCmd.userInput[i] exp.SendLine(input) // use the index to find the corresponding