@@ -1543,17 +1543,19 @@ func TestMetaBackend_planLocal(t *testing.T) {
15431543 if err != nil {
15441544 t .Fatal (err )
15451545 }
1546- backendConfig := plans.Backend {
1547- Type : "local" ,
1548- Config : backendConfigRaw ,
1549- Workspace : "default" ,
1546+ plan := & plans.Plan {
1547+ Backend : plans.Backend {
1548+ Type : "local" ,
1549+ Config : backendConfigRaw ,
1550+ Workspace : "default" ,
1551+ },
15501552 }
15511553
15521554 // Setup the meta
15531555 m := testMetaBackend (t , nil )
15541556
15551557 // Get the backend
1556- b , diags := m .BackendForLocalPlan (backendConfig )
1558+ b , diags := m .BackendForLocalPlan (plan )
15571559 if diags .HasErrors () {
15581560 t .Fatal (diags .Err ())
15591561 }
@@ -1634,10 +1636,12 @@ func TestMetaBackend_planLocalStatePath(t *testing.T) {
16341636 if err != nil {
16351637 t .Fatal (err )
16361638 }
1637- plannedBackend := plans.Backend {
1638- Type : "local" ,
1639- Config : backendConfigRaw ,
1640- Workspace : "default" ,
1639+ plan := & plans.Plan {
1640+ Backend : plans.Backend {
1641+ Type : "local" ,
1642+ Config : backendConfigRaw ,
1643+ Workspace : "default" ,
1644+ },
16411645 }
16421646
16431647 // Create an alternate output path
@@ -1654,7 +1658,7 @@ func TestMetaBackend_planLocalStatePath(t *testing.T) {
16541658 m .stateOutPath = statePath
16551659
16561660 // Get the backend
1657- b , diags := m .BackendForLocalPlan (plannedBackend )
1661+ b , diags := m .BackendForLocalPlan (plan )
16581662 if diags .HasErrors () {
16591663 t .Fatal (diags .Err ())
16601664 }
@@ -1733,17 +1737,19 @@ func TestMetaBackend_planLocalMatch(t *testing.T) {
17331737 if err != nil {
17341738 t .Fatal (err )
17351739 }
1736- backendConfig := plans.Backend {
1737- Type : "local" ,
1738- Config : backendConfigRaw ,
1739- Workspace : "default" ,
1740+ plan := & plans.Plan {
1741+ Backend : plans.Backend {
1742+ Type : "local" ,
1743+ Config : backendConfigRaw ,
1744+ Workspace : "default" ,
1745+ },
17401746 }
17411747
17421748 // Setup the meta
17431749 m := testMetaBackend (t , nil )
17441750
17451751 // Get the backend
1746- b , diags := m .BackendForLocalPlan (backendConfig )
1752+ b , diags := m .BackendForLocalPlan (plan )
17471753 if diags .HasErrors () {
17481754 t .Fatal (diags .Err ())
17491755 }
0 commit comments