From 012f95871eb6d805e77efd73d68a8fff5d174350 Mon Sep 17 00:00:00 2001 From: Gijs van Veen Date: Tue, 8 Oct 2024 09:51:56 +0200 Subject: [PATCH] Fixed broken test --- .../kotlin/dev/gitlive/firebase/firestore/WriteBatchTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firebase-firestore/src/commonTest/kotlin/dev/gitlive/firebase/firestore/WriteBatchTest.kt b/firebase-firestore/src/commonTest/kotlin/dev/gitlive/firebase/firestore/WriteBatchTest.kt index f5e8ece3f..4eecdfbf9 100644 --- a/firebase-firestore/src/commonTest/kotlin/dev/gitlive/firebase/firestore/WriteBatchTest.kt +++ b/firebase-firestore/src/commonTest/kotlin/dev/gitlive/firebase/firestore/WriteBatchTest.kt @@ -167,13 +167,13 @@ class WriteBatchTest : BaseFirebaseFirestoreTest() { ) val batch = firestore.batch() - batch.update(doc1) { + batch.updateFields(doc1) { FirestoreTest::prop1.name to "prop1-updated" FieldPath(FirestoreTest::optional.name) to "notNull" FirestoreTest::duration.name.to(DurationAsIntSerializer(), 300.milliseconds) FieldPath(FirestoreTest::nested.name).to(NestedObject.serializer(), NestedObject("nested")) } - batch.update(doc2) { + batch.updateFields(doc2) { FirestoreTest::prop1.name to "prop2-updated" FieldPath(FirestoreTest::optional.name) to "alsoNotNull" FirestoreTest::duration.name.to(DurationAsIntSerializer(), 200.milliseconds)