File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ func TestValidateCandidate(t *testing.T) {
151151 assert .ErrorContains (t , err , tc .err )
152152 case tc .invalid != "" :
153153 assert .NilError (t , err )
154- assert .Assert (t , is .ErrorType (p .Err , reflect .TypeOf ( & pluginError {} )))
154+ assert .Assert (t , is .ErrorType (p .Err , reflect .TypeFor [ * pluginError ]( )))
155155 assert .ErrorContains (t , p .Err , tc .invalid )
156156 default :
157157 assert .NilError (t , err )
Original file line number Diff line number Diff line change @@ -1153,7 +1153,7 @@ func TestLoadMultipleServiceVolumes(t *testing.T) {
11531153func TestMergeUlimitsConfig (t * testing.T ) {
11541154 specials := & specials {
11551155 m : map [reflect.Type ]func (dst , src reflect.Value ) error {
1156- reflect .TypeOf ( & types.UlimitsConfig {} ): mergeUlimitsConfig ,
1156+ reflect .TypeFor [ * types.UlimitsConfig ]( ): mergeUlimitsConfig ,
11571157 },
11581158 }
11591159 base := map [string ]* types.UlimitsConfig {
@@ -1189,7 +1189,7 @@ func TestMergeUlimitsConfig(t *testing.T) {
11891189func TestMergeServiceNetworkConfig (t * testing.T ) {
11901190 specials := & specials {
11911191 m : map [reflect.Type ]func (dst , src reflect.Value ) error {
1192- reflect .TypeOf ( & types.ServiceNetworkConfig {} ): mergeServiceNetworkConfig ,
1192+ reflect .TypeFor [ * types.ServiceNetworkConfig ]( ): mergeServiceNetworkConfig ,
11931193 },
11941194 }
11951195 base := map [string ]* types.ServiceNetworkConfig {
You can’t perform that action at this time.
0 commit comments