Skip to content

Commit

Permalink
fix: load overrides and adoptions before creating first probes list
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Dec 18, 2024
1 parent a5802cd commit b06393b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ export const createServer = async (): Promise<Server> => {
await populateIpWhiteList();
// Populate cities info
await populateCitiesList();
// Populate Dashboard override data
await probeOverride.fetchDashboardData();

await initWsServer();

await probeOverride.fetchDashboardData();
probeOverride.scheduleSync();

await auth.syncTokens();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ describe('Create measurement', () => {
await client('gp_location_overrides').where({ city: 'Paris' }).delete();
});

it.only('should ignore adopted custom city if admin data says it is another country', async () => {
it('should ignore adopted custom city if admin data says it is another country', async () => {
await requestAgent.post('/v1/measurements')
.send({
type: 'ping',
Expand Down

0 comments on commit b06393b

Please sign in to comment.