Skip to content

Commit c23a1a5

Browse files
committed
notif test: add a delay to allow registerToken to finish
1 parent 9812b03 commit c23a1a5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/api/core_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ void main() {
460460
});
461461
}
462462

463-
const packageInfo = PackageInfo(version: '0.0.1', buildNumber: '1');
463+
const packageInfo = PackageInfo(version: '0.0.1', buildNumber: '1', packageName: 'com.zulip.flutter');
464464

465465
const testCases = [
466466
('ZulipFlutter/0.0.1+1 (Android 14)', AndroidDeviceInfo(release: '14', sdkInt: 34), ),

test/model/store_test.dart

+1
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,7 @@ void main() {
11771177
// When the token later appears, send it.
11781178
connection.prepare(json: {});
11791179
await startFuture;
1180+
await Future<void>.delayed(Duration(seconds: 2));
11801181
if (defaultTargetPlatform == TargetPlatform.android) {
11811182
checkLastRequestFcm(token: '012abc');
11821183
} else {

0 commit comments

Comments
 (0)