From 9b3de66fa3b3c0cc39724d80019204435204f995 Mon Sep 17 00:00:00 2001 From: Dylan Ratcliffe Date: Tue, 9 Jul 2024 09:19:58 +0000 Subject: [PATCH] Fix index --- cmd/changes_submit_plan_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/changes_submit_plan_test.go b/cmd/changes_submit_plan_test.go index 96b78c83..aa880ac0 100644 --- a/cmd/changes_submit_plan_test.go +++ b/cmd/changes_submit_plan_test.go @@ -267,8 +267,8 @@ func TestHandleKnownAfterApply(t *testing.T) { } if list, ok := i.([]interface{}); ok { - if list[3] != KnownAfterApply { - t.Errorf("expected third string_value to be %v, got %v", KnownAfterApply, list[3]) + if list[2] != KnownAfterApply { + t.Errorf("expected third string_value to be %v, got %v", KnownAfterApply, list[2]) } } else { t.Error("list_value is not a string slice")