Skip to content

Commit

Permalink
tests: don't double count server network requests on retry (#12779)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce authored Jul 13, 2021
1 parent c284253 commit 2bd13d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lighthouse-cli/test/smokehouse/smokehouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ async function runSmokeTest(testOptions) {
networkRequests: takeNetworkRequestUrls ? takeNetworkRequestUrls() : undefined,
};
} catch (e) {
// Clear the network requests so that when we retry, we don't see duplicates.
if (takeNetworkRequestUrls) takeNetworkRequestUrls();

logChildProcessError(localConsole, e);
continue; // Retry, if possible.
}
Expand Down

0 comments on commit 2bd13d6

Please sign in to comment.