From 6b1430a2b372184ee0f3ab9303c1c20f54c31799 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 11 Sep 2018 14:27:41 -0700 Subject: [PATCH] core: Fix TestContext2Apply_resourceCountZeroList The new state stringer only writes if the entire state is nil, rather than when its list of resources is empty. --- terraform/context_apply_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/terraform/context_apply_test.go b/terraform/context_apply_test.go index 33ed6159c..577bf2816 100644 --- a/terraform/context_apply_test.go +++ b/terraform/context_apply_test.go @@ -217,8 +217,7 @@ func TestContext2Apply_resourceCountZeroList(t *testing.T) { } got := strings.TrimSpace(state.String()) - want := strings.TrimSpace(` -Outputs: + want := strings.TrimSpace(`Outputs: test = []`) if got != want {