-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add tests for submitting measurements #18
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Miroslav Bajtoš <[email protected]>
Co-authored-by: Miroslav Bajtoš <[email protected]>
* Add tests for listing arweave nodes * Remove redundant test * format * Update tests/nodes.test.js Co-authored-by: Miroslav Bajtoš <[email protected]> --------- Co-authored-by: Miroslav Bajtoš <[email protected]>
…work/arweave-checker into feat/submit-measurement
Converting to draft until #15 gets merged |
I have unassigned myself from the review. Please re-assign me after this PR is ready for review & merging. |
Co-authored-by: Miroslav Bajtoš <[email protected]>
…weave-checker into feat/list-recent-transactions
…work/arweave-checker into feat/list-recent-transactions
…work/arweave-checker into feat/submit-measurement
* @param {typeof globalThis.fetch} fetch | ||
*/ | ||
export const submit = async (measurement, fetch = globalThis.fetch) => { | ||
const res = await fetch('https://api.checker.network/arweave/measurement', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we perform a retry here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not exactly sure as we're not retrying with spark-checker
too.
Co-authored-by: Nikolas Haimerl <[email protected]>
Extract measurement function to separate lib module and adds tests.
Closes #12