@@ -1250,15 +1250,15 @@ func TestEventHandler_APIRemoval(t *testing.T) {
1250
1250
t .Errorf ("expected %d events, but got %d" , 3 , readyLen )
1251
1251
}
1252
1252
1253
- if ! slices .Contains (executor .apiRegistry [ProviderReady ], & h2 ) {
1253
+ if ! slices .Contains (executor .apiRegistry [ProviderReady ], EventCallback ( & h2 ) ) {
1254
1254
t .Errorf ("expected callback to be present" )
1255
1255
}
1256
1256
1257
- if ! slices .Contains (executor .apiRegistry [ProviderReady ], & h3 ) {
1257
+ if ! slices .Contains (executor .apiRegistry [ProviderReady ], EventCallback ( & h3 ) ) {
1258
1258
t .Errorf ("expected callback to be present" )
1259
1259
}
1260
1260
1261
- if ! slices .Contains (executor .apiRegistry [ProviderReady ], & h3 ) {
1261
+ if ! slices .Contains (executor .apiRegistry [ProviderReady ], EventCallback ( & h4 ) ) {
1262
1262
t .Errorf ("expected callback to be present" )
1263
1263
}
1264
1264
@@ -1303,15 +1303,15 @@ func TestEventHandler_APIRemoval(t *testing.T) {
1303
1303
t .Errorf ("expected %d events in client a, but got %d" , 3 , readyLen )
1304
1304
}
1305
1305
1306
- if ! slices .Contains (executor .scopedRegistry ["a" ].callbacks [ProviderReady ], & h2 ) {
1306
+ if ! slices .Contains (executor .scopedRegistry ["a" ].callbacks [ProviderReady ], EventCallback ( & h2 ) ) {
1307
1307
t .Errorf ("expected callback to be present" )
1308
1308
}
1309
1309
1310
- if ! slices .Contains (executor .scopedRegistry ["a" ].callbacks [ProviderReady ], & h3 ) {
1310
+ if ! slices .Contains (executor .scopedRegistry ["a" ].callbacks [ProviderReady ], EventCallback ( & h3 ) ) {
1311
1311
t .Errorf ("expected callback to be present" )
1312
1312
}
1313
1313
1314
- if ! slices .Contains (executor .scopedRegistry ["a" ].callbacks [ProviderReady ], & h4 ) {
1314
+ if ! slices .Contains (executor .scopedRegistry ["a" ].callbacks [ProviderReady ], EventCallback ( & h4 ) ) {
1315
1315
t .Errorf ("expected callback to be present" )
1316
1316
}
1317
1317
0 commit comments