From 0ab7faf5c14b2b225215b8156a69e9a9fd2a4de7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 25 Jun 2014 22:19:27 -0700 Subject: [PATCH] terraform: update test to latest --- terraform/diff_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/terraform/diff_test.go b/terraform/diff_test.go index 5daf21837..59a5b379c 100644 --- a/terraform/diff_test.go +++ b/terraform/diff_test.go @@ -31,6 +31,13 @@ func TestDiff_Empty(t *testing.T) { if diff.Empty() { t.Fatal("should not be empty") } + + diff.Resources["nodeA"].Attributes = nil + diff.Resources["nodeA"].Destroy = true + + if diff.Empty() { + t.Fatal("should not be empty") + } } func TestDiff_String(t *testing.T) {