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 provider test #980

Merged
merged 23 commits into from
Aug 8, 2024
Merged

feat: add provider test #980

merged 23 commits into from
Aug 8, 2024

Conversation

shamsartem
Copy link
Collaborator

No description provided.

@shamsartem shamsartem self-assigned this Jul 11, 2024
@shamsartem shamsartem added the e2e label Jul 11, 2024
@shamsartem shamsartem marked this pull request as draft July 11, 2024 11:12
@shamsartem shamsartem marked this pull request as ready for review July 12, 2024 12:59
@shamsartem shamsartem requested a review from folex August 5, 2024 13:10
Comment on lines 136 to 147
await sleepSeconds(5);

await fluence({
args: ["provider", "cc-info"],
flags: {
...PRIV_KEY_1,
[OFFER_FLAG_NAME]: NEW_OFFER_NAME,
},
cwd,
});

await sleepSeconds(CC_DURATION_MINUTES * 60);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, what do these sleeps mean? You actually wait so long in tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wait 1 * 60 seconds = 1 minute cause it's a duration of CC. Can we make it less then a minute for this test - probably. I wanted to see all the statuses of the commitment in this test

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to mine blocks in anvil, but I think it requires more work right now

shamsartem and others added 3 commits August 8, 2024 11:25
… working on firefox (#994)

* fix(cli-connector): switch chain networks reliably, fix connector not working on firefox

* don't suggest to switch network if user canceled
@shamsartem shamsartem merged commit e8be713 into main Aug 8, 2024
10 checks passed
@shamsartem shamsartem deleted the provider-tests branch August 8, 2024 11:35
shamsartem added a commit that referenced this pull request Sep 9, 2024
* feat: add provider test

* Apply automatic changes

* fix

* add cc-collateral-withdraw

* Apply automatic changes

* add offers flag

* Apply automatic changes

* activate

* check cc-info status

* fix import and messages

* remove asserts

* Apply automatic changes

* add chain RPC to chain info

* add marine and mrepl paths to fluence dep v

* Apply automatic changes

* improve flags

* Apply automatic changes

* fix(cli-connector): switch chain networks reliably, fix connector not working on firefox (#994)

* fix(cli-connector): switch chain networks reliably, fix connector not working on firefox

* don't suggest to switch network if user canceled

* use 30 seconds cc duration

---------

Co-authored-by: shamsartem <shamsartem@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants