Fix iterator in a couple of e2e tests
This commit is contained in:
parent
0cd9490838
commit
d04c01573c
|
@ -172,7 +172,7 @@ func Test_migrate_single_to_tfc(t *testing.T) {
|
||||||
lenInput := len(tfCmd.userInput)
|
lenInput := len(tfCmd.userInput)
|
||||||
lenInputOutput := len(tfCmd.postInputOutput)
|
lenInputOutput := len(tfCmd.postInputOutput)
|
||||||
if lenInput > 0 {
|
if lenInput > 0 {
|
||||||
for i := 0; i <= lenInput; i++ {
|
for i := 0; i < lenInput; i++ {
|
||||||
input := tfCmd.userInput[i]
|
input := tfCmd.userInput[i]
|
||||||
exp.SendLine(input)
|
exp.SendLine(input)
|
||||||
// use the index to find the corresponding
|
// use the index to find the corresponding
|
||||||
|
|
|
@ -93,7 +93,7 @@ func Test_migrate_tfc_to_other(t *testing.T) {
|
||||||
lenInput := len(tfCmd.userInput)
|
lenInput := len(tfCmd.userInput)
|
||||||
lenInputOutput := len(tfCmd.postInputOutput)
|
lenInputOutput := len(tfCmd.postInputOutput)
|
||||||
if lenInput > 0 {
|
if lenInput > 0 {
|
||||||
for i := 0; i <= lenInput; i++ {
|
for i := 0; i < lenInput; i++ {
|
||||||
input := tfCmd.userInput[i]
|
input := tfCmd.userInput[i]
|
||||||
exp.SendLine(input)
|
exp.SendLine(input)
|
||||||
// use the index to find the corresponding
|
// use the index to find the corresponding
|
||||||
|
|
Loading…
Reference in New Issue