Skip to content

Commit 57b02ee

Browse files
committed
test: EphemeralStore apply
1 parent ff31051 commit 57b02ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/LoroTests/EphemeralStoreTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ final class EphemeralStoreTests: XCTestCase {
177177
let encodedData = store1.encodeAll()
178178

179179
// Apply data to store2
180-
store2.apply(data: encodedData)
180+
try! store2.apply(data: encodedData)
181181

182182
// Verify store2 has the same data
183183
XCTAssertEqual(store2.get(key: "key1"), LoroValue.string(value: "value1"))
@@ -201,7 +201,7 @@ final class EphemeralStoreTests: XCTestCase {
201201

202202
// Create new store and apply specific key data
203203
let newStore = EphemeralStore(timeout: 60000)
204-
newStore.apply(data: encodedKey1)
204+
try! newStore.apply(data: encodedKey1)
205205

206206
// Should only have key1, not key2
207207
XCTAssertNotNil(newStore.get(key: "key1"))

0 commit comments

Comments
 (0)