Make sure test has a valid ResourceState

Empty resources are now pruned more aggressively, so make sure there is
a valid ResourceState in the test ModuleState.
This commit is contained in:
James Bardin 2016-11-20 13:13:43 -05:00
parent 7715bc8423
commit 9616618de1
1 changed files with 5 additions and 1 deletions

View File

@ -71,7 +71,11 @@ func TestCacheState_RefreshState(t *testing.T) {
&terraform.ModuleState{
Path: terraform.RootModulePath,
Resources: map[string]*terraform.ResourceState{
"foo.foo": &terraform.ResourceState{},
"foo.foo": &terraform.ResourceState{
Primary: &terraform.InstanceState{
ID: "ID",
},
},
},
},
},