Skip to content
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

Open
wants to merge 39 commits into
base: main
Choose a base branch
from

Conversation

pyropy
Copy link
Contributor

@pyropy pyropy commented Mar 7, 2025

Extract measurement function to separate lib module and adds tests.

Closes #12

@pyropy pyropy requested a review from juliangruber as a code owner March 7, 2025 12:46
@pyropy pyropy requested review from bajtos and NikolasHaimerl March 7, 2025 12:46
@pyropy
Copy link
Contributor Author

pyropy commented Mar 7, 2025

Converting to draft until #15 gets merged

@pyropy pyropy marked this pull request as draft March 7, 2025 15:32
@bajtos bajtos removed their request for review March 12, 2025 08:29
@bajtos
Copy link
Member

bajtos commented Mar 12, 2025

I have unassigned myself from the review. Please re-assign me after this PR is ready for review & merging.

Base automatically changed from feat/list-recent-transactions to main March 12, 2025 17:47
@pyropy pyropy marked this pull request as ready for review March 12, 2025 17:54
@pyropy pyropy requested a review from bajtos March 12, 2025 17:56
* @param {typeof globalThis.fetch} fetch
*/
export const submit = async (measurement, fetch = globalThis.fetch) => {
const res = await fetch('https://api.checker.network/arweave/measurement', {

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?

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants