Skip to content

Commit 154eedd

Browse files
committed
Resolved conflicts and fix dependency_overrides
1 parent 06bd9c3 commit 154eedd

File tree

4 files changed

+7
-92
lines changed

4 files changed

+7
-92
lines changed

app/lib/task/backend.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ import 'package:pub_dev/shared/versions.dart'
4040
gcBeforeRuntimeVersion,
4141
shouldGCVersion,
4242
acceptedRuntimeVersions;
43-
import 'package:pub_dev/shared/versions.dart' as shared_versions
44-
show runtimeVersion;
4543
import 'package:pub_dev/task/clock_control.dart';
4644
import 'package:pub_dev/task/cloudcompute/cloudcompute.dart';
4745
import 'package:pub_dev/task/global_lock.dart';
@@ -346,15 +344,10 @@ class TaskBackend {
346344
seen.removeWhere((_, updated) => updated.isBefore(since));
347345

348346
// Wait until aborted or 10 minutes before scanning again!
349-
<<<<<<< HEAD
350-
await abort.future
351-
.timeoutWithClock(Duration(minutes: 10), onTimeout: () => null);
352-
=======
353347
await abort.future.timeoutWithClock(
354348
Duration(minutes: 10),
355349
onTimeout: () => null,
356350
);
357-
>>>>>>> 9bf3c7bae (Initial migration of task backend to typed_sql)
358351
}
359352
}
360353

app/pubspec.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ dependencies:
5252
ulid: '2.0.1'
5353
tar: '2.0.0'
5454
api_builder:
55-
typed_sql: ^0.1.2
55+
typed_sql: ^0.1.3
5656
postgres: ^3.5.6
5757

5858
dev_dependencies:
@@ -64,7 +64,3 @@ dev_dependencies:
6464
source_gen: '^2.0.0'
6565
test: ^1.16.5
6666
xml: ^6.0.0
67-
68-
dependency_overrides:
69-
typed_sql:
70-
path: /workspace/dart-neats/typed_sql

app/test/shared/test_services.dart

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -192,81 +192,6 @@ void testWithProfile(
192192
);
193193
}
194194

195-
<<<<<<< HEAD
196-
=======
197-
/// Execute [fn] with [FakeTime.run] inside [testWithProfile].
198-
@isTest
199-
void testWithFakeTime(
200-
String name,
201-
FutureOr<void> Function(FakeTime fakeTime) fn, {
202-
TestProfile? testProfile,
203-
ImportSource? importSource,
204-
Pattern? integrityProblem,
205-
Iterable<Pattern>? expectedLogMessages,
206-
}) {
207-
scopedTest(name, expectedLogMessages: expectedLogMessages, () async {
208-
await FakeTime.run((fakeTime) async {
209-
setupDebugEnvBasedLogging();
210-
await withFakeServices(
211-
fn: () async {
212-
registerStaticFileCacheForTest(_staticFileCacheForTesting);
213-
214-
await importProfile(
215-
profile: testProfile ?? defaultTestProfile,
216-
source: importSource,
217-
);
218-
await nameTracker.reloadFromDatastore();
219-
await generateFakeDownloadCountsInDatastore();
220-
await indexUpdater.updateAllPackages();
221-
await asyncQueue.ongoingProcessing;
222-
fakeEmailSender.sentMessages.clear();
223-
224-
await fork(() async {
225-
await fn(fakeTime);
226-
});
227-
await _postTestVerification(integrityProblem: integrityProblem);
228-
},
229-
);
230-
});
231-
});
232-
}
233-
234-
void testWithClockControl(
235-
String name,
236-
FutureOr<void> Function(ClockController fakeTime) fn, {
237-
TestProfile? testProfile,
238-
ImportSource? importSource,
239-
Pattern? integrityProblem,
240-
Iterable<Pattern>? expectedLogMessages,
241-
}) {
242-
scopedTest(name, expectedLogMessages: expectedLogMessages, () async {
243-
await withClockControl((clockCtrl) async {
244-
setupDebugEnvBasedLogging();
245-
await withFakeServices(
246-
fn: () async {
247-
registerStaticFileCacheForTest(_staticFileCacheForTesting);
248-
249-
await importProfile(
250-
profile: testProfile ?? defaultTestProfile,
251-
source: importSource,
252-
);
253-
await nameTracker.reloadFromDatastore();
254-
await generateFakeDownloadCountsInDatastore();
255-
await indexUpdater.updateAllPackages();
256-
await asyncQueue.ongoingProcessing;
257-
fakeEmailSender.sentMessages.clear();
258-
259-
await fork(() async {
260-
await fn(clockCtrl);
261-
});
262-
await _postTestVerification(integrityProblem: integrityProblem);
263-
},
264-
);
265-
});
266-
});
267-
}
268-
269-
>>>>>>> 9bf3c7bae (Initial migration of task backend to typed_sql)
270195
void setupTestsWithCallerAuthorizationIssues(
271196
Future Function(PubApiClient client) fn) {
272197
testWithProfile('No active user', fn: () async {

pubspec.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -962,12 +962,13 @@ packages:
962962
source: hosted
963963
version: "1.4.0"
964964
typed_sql:
965-
dependency: "direct overridden"
965+
dependency: transitive
966966
description:
967-
path: "/workspace/dart-neats/typed_sql"
968-
relative: false
969-
source: path
970-
version: "0.1.2"
967+
name: typed_sql
968+
sha256: b9cf7444aa0c02705fd0faf8156280aae75574bb614f4c3893128247e7839204
969+
url: "https://pub.dev"
970+
source: hosted
971+
version: "0.1.3"
971972
ulid:
972973
dependency: transitive
973974
description:

0 commit comments

Comments
 (0)