core: Fix EvalWriteState tests

EvalWriteState now requires a provider address so that it can record the
last-used provider configuration in the state.
This commit is contained in:
Martin Atkins 2018-05-11 10:24:31 -07:00
parent dc7455887e
commit 9833d9991d
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,7 @@ func TestEvalWriteState(t *testing.T) {
Name: "restype.resname",
ResourceType: "restype",
State: &is,
Provider: addrs.RootModuleInstance.ProviderConfigDefault("res"),
}
_, err := node.Eval(ctx)
if err != nil {
@ -159,6 +160,7 @@ func TestEvalWriteState(t *testing.T) {
checkStateString(t, state, `
restype.resname:
ID = i-abc123
provider = provider.res
`)
}