@@ -135,7 +135,7 @@ func makeProvider(t *testing.T, name, config string) (Provider, *fakeProvider) {
135135 t .Helper ()
136136
137137 // Grab the provider builder.
138- b := Get (name )
138+ b := getBuilder (name )
139139 if b == nil {
140140 t .Fatalf ("no provider builder found for name : %s" , name )
141141 }
@@ -195,8 +195,8 @@ func (s) TestStoreWithSingleProvider(t *testing.T) {
195195 // Close the provider and retry the KeyMaterial() call, and expect it to
196196 // fail with a known error.
197197 prov .Close ()
198- if _ , err := prov .KeyMaterial (ctx , KeyMaterialOptions {}); err != ErrProviderClosed {
199- t .Fatalf ("provider.KeyMaterial() = %v, wantErr: %v" , err , ErrProviderClosed )
198+ if _ , err := prov .KeyMaterial (ctx , KeyMaterialOptions {}); err != errProviderClosed {
199+ t .Fatalf ("provider.KeyMaterial() = %v, wantErr: %v" , err , errProviderClosed )
200200 }
201201}
202202
@@ -234,8 +234,8 @@ func (s) TestStoreWithSingleProviderWithSharing(t *testing.T) {
234234 }
235235
236236 prov2 .Close ()
237- if _ , err := prov2 .KeyMaterial (ctx , KeyMaterialOptions {}); err != ErrProviderClosed {
238- t .Fatalf ("provider.KeyMaterial() = %v, wantErr: %v" , err , ErrProviderClosed )
237+ if _ , err := prov2 .KeyMaterial (ctx , KeyMaterialOptions {}); err != errProviderClosed {
238+ t .Fatalf ("provider.KeyMaterial() = %v, wantErr: %v" , err , errProviderClosed )
239239 }
240240}
241241
@@ -302,8 +302,8 @@ func (s) TestStoreWithSingleProviderWithoutSharing(t *testing.T) {
302302 }
303303
304304 prov2 .Close ()
305- if _ , err := prov2 .KeyMaterial (ctx , KeyMaterialOptions {}); err != ErrProviderClosed {
306- t .Fatalf ("provider.KeyMaterial() = %v, wantErr: %v" , err , ErrProviderClosed )
305+ if _ , err := prov2 .KeyMaterial (ctx , KeyMaterialOptions {}); err != errProviderClosed {
306+ t .Fatalf ("provider.KeyMaterial() = %v, wantErr: %v" , err , errProviderClosed )
307307 }
308308}
309309
@@ -351,7 +351,7 @@ func (s) TestStoreWithMultipleProviders(t *testing.T) {
351351 }
352352
353353 prov2 .Close ()
354- if _ , err := prov2 .KeyMaterial (ctx , KeyMaterialOptions {}); err != ErrProviderClosed {
355- t .Fatalf ("provider.KeyMaterial() = %v, wantErr: %v" , err , ErrProviderClosed )
354+ if _ , err := prov2 .KeyMaterial (ctx , KeyMaterialOptions {}); err != errProviderClosed {
355+ t .Fatalf ("provider.KeyMaterial() = %v, wantErr: %v" , err , errProviderClosed )
356356 }
357357}
0 commit comments