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) {