Skip to content

Commit f73d1d7

Browse files
committed
feat: implement BulkWriter for efficient batch writes with throttling
1 parent d977e63 commit f73d1d7

File tree

6 files changed

+1872
-50
lines changed

6 files changed

+1872
-50
lines changed

packages/dart_firebase_admin/test/firestore/firestore_integration_test.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import '../helpers.dart';
1515
void main() {
1616
// Skip all tests if emulator is not configured
1717
if (!isFirestoreEmulatorEnabled()) {
18+
// ignore: avoid_print
1819
print(
1920
'Skipping Firestore integration tests. '
2021
'Set FIRESTORE_EMULATOR_HOST environment variable to run these tests.',
@@ -253,7 +254,10 @@ void main() {
253254
// Verify we can fetch the referenced document
254255
final sisterSnapshot = await sisterCityRef.get();
255256
expect(sisterSnapshot.exists, isTrue);
256-
expect(sisterSnapshot.data()?['name'], equals('Mountain View'));
257+
expect(
258+
(sisterSnapshot.data() as Map<String, dynamic>?)?['name'],
259+
equals('Mountain View'),
260+
);
257261

258262
// Cleanup
259263
await sourceDoc.delete();

0 commit comments

Comments
 (0)