Skip to content

Commit 6119dab

Browse files
committed
fix tests
1 parent d672054 commit 6119dab

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

internal/plugin/grpc_provider_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,9 @@ func TestGRPCProvider_GetSchema_ListResourceTypes(t *testing.T) {
14391439
},
14401440
},
14411441
},
1442-
Nesting: configschema.NestingSingle,
1442+
Nesting: configschema.NestingSingle,
1443+
MinItems: 1,
1444+
MaxItems: 1,
14431445
},
14441446
},
14451447
},

internal/plugin6/grpc_provider_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,9 @@ func TestGRPCProvider_GetSchema_ListResourceTypes(t *testing.T) {
14581458
},
14591459
},
14601460
},
1461-
Nesting: configschema.NestingSingle,
1461+
Nesting: configschema.NestingSingle,
1462+
MinItems: 1,
1463+
MaxItems: 1,
14621464
},
14631465
},
14641466
},

internal/terraform/context_plan_query_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,7 @@ func TestContext2Plan_queryList(t *testing.T) {
938938
Query: true,
939939
GenerateConfigPath: tc.generatedPath,
940940
})
941+
tfdiags.AssertNoDiagnostics(t, diags)
941942

942943
if tc.assertChanges != nil {
943944
sch, err := ctx.Schemas(mod, states.NewState())

0 commit comments

Comments
 (0)