@@ -55,21 +55,6 @@ test("logs append-only, dedupe by source, split long texts, and reload with tree
|
||||
await again.close();
|
||||
});
|
||||
|
||||
test("messages logged after the saved view are appended to it at load", async () => {
|
||||
const directory = await fixture();
|
||||
const memory = await Memory.open(directory);
|
||||
memory.log("user", "a", "s:0");
|
||||
memory.saveView();
|
||||
memory.log("user", "b", "s:1");
|
||||
await memory.close();
|
||||
const again = await Memory.open(directory);
|
||||
expect(again.view.lines).toEqual([
|
||||
[0, 0],
|
||||
[0, 1],
|
||||
]);
|
||||
await again.close();
|
||||
});
|
||||
|
||||
test("one writer: the lock rejects a live holder and replaces a dead one", async () => {
|
||||
const directory = await fixture();
|
||||
const memory = await Memory.open(directory);
|
||||
|
||||
Reference in New Issue
Block a user