Skip to content

Commit 62fe008

Browse files
committed
more green
1 parent 8cbbe5b commit 62fe008

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

statecheck/expect_known_value_test.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -969,10 +969,8 @@ func TestExpectKnownValue_CheckState_Number(t *testing.T) {
969969
}
970970

971971
r.Test(t, r.TestCase{
972-
ProviderFactories: map[string]func() (*schema.Provider, error){
973-
"test": func() (*schema.Provider, error) { //nolint:unparam // required signature
974-
return testProvider(), nil
975-
},
972+
ProtoV6ProviderFactories: map[string]func() (tfprotov6.ProviderServer, error){
973+
"test": providerserver.NewProviderServer(anTestProvider),
976974
},
977975
Steps: []r.TestStep{
978976
{
@@ -1002,10 +1000,8 @@ func TestExpectKnownValue_CheckState_Number_KnownValueWrongValue(t *testing.T) {
10021000
}
10031001

10041002
r.Test(t, r.TestCase{
1005-
ProviderFactories: map[string]func() (*schema.Provider, error){
1006-
"test": func() (*schema.Provider, error) { //nolint:unparam // required signature
1007-
return testProvider(), nil
1008-
},
1003+
ProtoV6ProviderFactories: map[string]func() (tfprotov6.ProviderServer, error){
1004+
"test": providerserver.NewProviderServer(anTestProvider),
10091005
},
10101006
Steps: []r.TestStep{
10111007
{

0 commit comments

Comments
 (0)