@@ -17,8 +17,6 @@ import 'package:pub_dev/fake/backend/fake_pub_worker.dart';
17
17
import 'package:pub_dev/frontend/handlers/pubapi.client.dart' ;
18
18
import 'package:pub_dev/frontend/static_files.dart' ;
19
19
import 'package:pub_dev/package/name_tracker.dart' ;
20
- import 'package:pub_dev/search/handlers.dart' ;
21
- import 'package:pub_dev/search/search_client.dart' ;
22
20
import 'package:pub_dev/search/top_packages.dart' ;
23
21
import 'package:pub_dev/search/updater.dart' ;
24
22
import 'package:pub_dev/service/async_queue/async_queue.dart' ;
@@ -35,7 +33,6 @@ import 'package:pub_dev/tool/neat_task/pub_dev_tasks.dart';
35
33
import 'package:pub_dev/tool/test_profile/import_source.dart' ;
36
34
import 'package:pub_dev/tool/test_profile/importer.dart' ;
37
35
import 'package:pub_dev/tool/test_profile/models.dart' ;
38
- import 'package:pub_dev/tool/utils/http_client_to_shelf_handler.dart' ;
39
36
import 'package:pub_dev/tool/utils/pub_api_client.dart' ;
40
37
import 'package:test/test.dart' ;
41
38
@@ -96,9 +93,6 @@ class FakeAppengineEnv {
96
93
cloudCompute: _cloudCompute,
97
94
fn: () async {
98
95
registerStaticFileCacheForTest (_staticFileCacheForTesting);
99
- registerSearchClient (SearchClient (
100
- httpClientToShelfHandler (handler: searchServiceHandler)));
101
- registerScopeExitCallback (searchClient.close);
102
96
103
97
if (testProfile != null ) {
104
98
await importProfile (
@@ -201,10 +195,7 @@ void testWithFakeTime(
201
195
setupDebugEnvBasedLogging ();
202
196
await withFakeServices (
203
197
fn: () async {
204
- registerStaticFileCacheForTest (StaticFileCache .forTests ());
205
- registerSearchClient (SearchClient (
206
- httpClientToShelfHandler (handler: searchServiceHandler)));
207
- registerScopeExitCallback (searchClient.close);
198
+ registerStaticFileCacheForTest (_staticFileCacheForTesting);
208
199
209
200
await importProfile (
210
201
profile: testProfile ?? defaultTestProfile,
0 commit comments