Skip to content

Commit 28cff04

Browse files
update test
1 parent f3e9210 commit 28cff04

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Tests/PowerSyncTests/Kotlin/KotlinPowerSyncDatabaseImplTests.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ final class KotlinPowerSyncDatabaseImplTests: XCTestCase {
2424

2525
override func tearDown() async throws {
2626
try await database.disconnectAndClear()
27-
try await database.close()
27+
// Tests currently fail if this is called.
28+
// The watched query tests try and read from the DB while it's closing.
29+
// This causes a PowerSyncException to be thrown in the Kotlin flow.
30+
// Custom exceptions are not supported by SKIEE. This causes a crash.
31+
// FIXME: Reapply once watched query errors are handled better.
32+
// try await database.close()
2833
database = nil
2934
try await super.tearDown()
3035
}

0 commit comments

Comments
 (0)