Skip to content

Commit d2f2db3

Browse files
abnegateclaude
andcommitted
(fix): remove stale purge call from cache invalidation test
The purge method was removed from the Resolver interface. The test now relies on TTL expiry alone to verify re-resolution, which is what it was actually testing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e485e8c commit d2f2db3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/Integration/EdgeIntegrationTest.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,13 @@ public function testCacheInvalidationForcesReResolve(): void
258258
$first = $adapter->route('invaldb');
259259
$this->assertFalse($first->metadata['cached']);
260260

261-
$resolver->purge('invaldb');
262-
263261
// Wait for the routing table cache to expire
264262
sleep(2);
265263

266264
$second = $adapter->route('invaldb');
267265
$this->assertFalse($second->metadata['cached']);
268266

269-
// Should have resolved twice
267+
// Should have resolved twice (cache expired, forced re-resolve)
270268
$this->assertSame(2, $resolver->getResolveCount());
271269
}
272270

@@ -440,11 +438,6 @@ public function getResolveCount(): int
440438
{
441439
return $this->resolveCount;
442440
}
443-
444-
public function purge(string $data): void
445-
{
446-
unset($this->databases[$data]);
447-
}
448441
}
449442

450443
/**

0 commit comments

Comments
 (0)