Skip to content

Commit

Permalink
fix(test): increased max time for searches for prod servers
Browse files Browse the repository at this point in the history
  • Loading branch information
windauer committed Apr 29, 2024
1 parent 57e0df6 commit 8cc35d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/specs/search/prod_search_new-indexes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Search a keyword with filters "within=documents" and "date"', () => {
await Page.open('search?q=Indochina&within=documents&start-date=1950&end-date=1980');
duration = await Page.getElementText(searchDuration)
console.log('duration=', parseFloat(duration));
assert.isTrue(parseFloat(duration) < 0.500, 'Current duration did not match expected duration');
assert.isTrue(parseFloat(duration) < 1.000, 'Current duration did not match expected duration');
});

// Keyword Sudan
Expand All @@ -42,7 +42,7 @@ describe('Search a keyword with filters "within=documents" and "date"', () => {
await Page.open('search?q=Sudan&within=documents&start-date=1950&end-date=1980');
duration = await Page.getElementText(searchDuration)
console.log('duration=', parseFloat(duration));
assert.isTrue(parseFloat(duration) < 0.500, 'Current duration did not match expected duration');
assert.isTrue(parseFloat(duration) < 1.000, 'Current duration did not match expected duration');
});

// Keyword China
Expand All @@ -58,7 +58,7 @@ describe('Search a keyword with filters "within=documents" and "date"', () => {
await Page.open('search?q=China&within=documents&start-date=1950&end-date=1980');
duration = await Page.getElementText(searchDuration)
console.log('duration=', parseFloat(duration));
assert.isTrue(parseFloat(duration) < 0.500, 'Current duration did not match expected duration');
assert.isTrue(parseFloat(duration) < 1.000, 'Current duration did not match expected duration');
});

// Keyword Tokyo
Expand All @@ -74,7 +74,7 @@ describe('Search a keyword with filters "within=documents" and "date"', () => {
await Page.open('search?q=Tokyo&within=documents&start-date=1950&end-date=1980');
duration = await Page.getElementText(searchDuration)
console.log('duration=', parseFloat(duration));
assert.isTrue(parseFloat(duration) < 0.500, 'Current duration did not match expected duration');
assert.isTrue(parseFloat(duration) < 1.000, 'Current duration did not match expected duration');
});

});
Expand Down

0 comments on commit 8cc35d9

Please sign in to comment.