File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
core/src/commonIntegrationTest/kotlin/com/powersync Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ class AttachmentsTest {
176
176
val exists = queue.localStorage.fileExists(localUri)
177
177
exists shouldBe false
178
178
179
- attachmentQuery.cancel ()
179
+ attachmentQuery.cancelAndIgnoreRemainingEvents ()
180
180
}
181
181
}
182
182
@@ -286,7 +286,7 @@ class AttachmentsTest {
286
286
// The file should have been deleted from storage
287
287
queue.localStorage.fileExists(localUri) shouldBe false
288
288
289
- attachmentQuery.cancel ()
289
+ attachmentQuery.cancelAndIgnoreRemainingEvents ()
290
290
}
291
291
}
292
292
@@ -385,7 +385,7 @@ class AttachmentsTest {
385
385
)
386
386
}
387
387
388
- attachmentQuery.cancel ()
388
+ attachmentQuery.cancelAndIgnoreRemainingEvents ()
389
389
}
390
390
}
391
391
@@ -497,7 +497,7 @@ class AttachmentsTest {
497
497
attachmentRecord = attachmentQuery.awaitItem().first()
498
498
attachmentRecord.state shouldBe AttachmentState .SYNCED
499
499
500
- attachmentQuery.cancel ()
500
+ attachmentQuery.cancelAndIgnoreRemainingEvents ()
501
501
}
502
502
}
503
503
@@ -579,7 +579,7 @@ class AttachmentsTest {
579
579
580
580
attachmentRecord.state shouldBe AttachmentState .ARCHIVED
581
581
582
- attachmentQuery.cancel ()
582
+ attachmentQuery.cancelAndIgnoreRemainingEvents ()
583
583
}
584
584
}
585
585
}
You can’t perform that action at this time.
0 commit comments