Google Maps Bug
This commit is contained in:
@@ -315,6 +315,7 @@ describe('Admin Catalog Integration Tests', () => {
|
||||
it('should invalidate cache after create operation', async () => {
|
||||
// Set a cache value
|
||||
await redis.set('mvp:platform:vehicle-data:makes:2024', JSON.stringify([]), 3600);
|
||||
await redis.set('mvp:platform:years', JSON.stringify([2024]), 3600);
|
||||
|
||||
// Create make (should invalidate cache)
|
||||
await app.inject({
|
||||
@@ -324,12 +325,11 @@ describe('Admin Catalog Integration Tests', () => {
|
||||
payload: { name: 'Honda' }
|
||||
});
|
||||
|
||||
// Check if cache was invalidated (implementation depends on invalidateVehicleData)
|
||||
// Note: Current implementation logs warning but doesn't actually invalidate
|
||||
// This test documents expected behavior
|
||||
const cacheValue = await redis.get('mvp:platform:vehicle-data:makes:2024');
|
||||
// Cache should be invalidated or remain (depending on implementation)
|
||||
expect(cacheValue).toBeDefined();
|
||||
const yearsCacheValue = await redis.get('mvp:platform:years');
|
||||
|
||||
expect(cacheValue).toBeNull();
|
||||
expect(yearsCacheValue).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user