core: go fmt context_plan_test.go

This commit is contained in:
Martin Atkins 2018-09-28 14:54:59 -07:00
parent 55103985f7
commit 3919a9644c
1 changed files with 2 additions and 2 deletions

View File

@ -4892,7 +4892,7 @@ func TestContext2Plan_createBeforeDestroy_depends_datasource(t *testing.T) {
}, },
}, },
} }
p.PlanResourceChangeFn = func (req providers.PlanResourceChangeRequest) providers.PlanResourceChangeResponse { p.PlanResourceChangeFn = func(req providers.PlanResourceChangeRequest) providers.PlanResourceChangeResponse {
return providers.PlanResourceChangeResponse{ return providers.PlanResourceChangeResponse{
PlannedState: req.ProposedNewState, PlannedState: req.ProposedNewState,
} }
@ -4926,7 +4926,7 @@ func TestContext2Plan_createBeforeDestroy_depends_datasource(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
t.Run(ric.Addr.String(), func (t *testing.T) { t.Run(ric.Addr.String(), func(t *testing.T) {
switch i := ric.Addr.String(); i { switch i := ric.Addr.String(); i {
case "aws_instance.foo[0]": case "aws_instance.foo[0]":
if res.Action != plans.Create { if res.Action != plans.Create {