You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test('does not add a document if a transaction fails', () async {
final db = FakeFirebaseFirestore();
try {
await db.runTransaction((transaction) async {
transaction.set(db.collection('test').doc(), {'name': 'Jane'});
// the next line makes the transaction fail because reads should always come before writes
await transaction.get(db.collection('test').doc('non-existent'));
});
} finally {
final snapshot = await db.collection('test').get();
expect(snapshot.docs, isEmpty);
}
});
The text was updated successfully, but these errors were encountered:
% fvm flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.1, on macOS 13.3.1 22E772610a darwin-arm64, locale ja-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.80.1)
[✓] Connected device (5 available)
[✓] Network resources
• No issues found!
Failing test:
The text was updated successfully, but these errors were encountered: