Skip to content

Commit

Permalink
fix: log measurement status
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Mar 14, 2024
1 parent 00f3a73 commit 9f5777b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test-e2e/tests/offline-probes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ describe('api', () => {
locations: locationId,
} }).json();

console.log('measurement id:', id, new Date());
const response = await waitMesurementFinish(id);

console.log(1, new Date());
console.log('response.body', response.body, new Date());
expect(response.body.status).to.equal('finished');
expect(response.body.results[0].result.status).to.equal('offline');
expect(response).to.matchApiSchema();
Expand Down
4 changes: 4 additions & 0 deletions test-e2e/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ export const waitMesurementFinish = async (id: string) => {
for (;;) {
const response = await got<any>(`http://localhost:80/v1/measurements/${id}`, { responseType: 'json' });

console.log('id', id, new Date());
console.log('response.body.status', response.body.status, new Date());

if (response.body.status !== 'in-progress') {
logger.info('return');
return response;
}

Expand Down

0 comments on commit 9f5777b

Please sign in to comment.