mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-07 05:12:20 +00:00
Merge pull request #232 from PR0M3TH3AN/test/unpin-memory-coverage-10292270866664076558
🧪 Test unpinMemory function
This commit is contained in:
1 file changed
+3
-3
@@ -103,9 +103,9 @@ test('unpinMemory unpins the memory and clears the cache', async () => {
|
||||
assert.equal(listMemoriesCallCount, 1, 'Repository should NOT be queried on cache hit');
|
||||
|
||||
// 3. Unpin memory
|
||||
const unpinned = await unpinMemory('m1', { repository });
|
||||
assert.ok(unpinned);
|
||||
assert.equal(unpinned.pinned, false);
|
||||
const updated = await unpinMemory('m1', { repository });
|
||||
assert.ok(updated);
|
||||
assert.equal(updated.pinned, false);
|
||||
assert.equal(records[0].pinned, false);
|
||||
|
||||
// 4. Verify cache miss (cleared)
|
||||
|
||||
Reference in new issue
Block a user