This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve docs for missing price data (#266)
* Improve docs for missing pricing data (#255) * Add note about gas usage measurement accuracy for non-eth networks Co-authored-by: Mark Miro <markmirony+github@gmail.com>
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Missing Price Data | ||
|
||
Two possible reasons for this: | ||
- [Default API key](https://github.com/cgewecke/eth-gas-reporter/blob/23fc57687b4e190c7e28571a14773d96cdbf7d63/lib/config.js#L12) reached a usage cap. | ||
- The tests ran too quickly and price data couldn't be fetched before returning the test. You can manually slow down your tests with a dummy | ||
|
||
To slow down unit tests, you can add a dummy test like this: | ||
```js | ||
// Wait so the reporter has time to fetch and return prices from APIs. | ||
// https://github.com/cgewecke/eth-gas-reporter/issues/254 | ||
describe("eth-gas-reporter workaround", () => { | ||
it("should kill time", (done) => { | ||
setTimeout(done, 2000); | ||
}); | ||
}); | ||
``` |