-
Notifications
You must be signed in to change notification settings - Fork 35
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
Conversation
cli/test/tests/provider.test.ts
Outdated
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); |
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.
Wow, what do these sleeps mean? You actually wait so long in tests?
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 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
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.
It's better to mine blocks in anvil, but I think it requires more work right now
… 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
* 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>
No description provided.