-
Notifications
You must be signed in to change notification settings - Fork 520
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
Add getInfo/get_info methods to the SDKs #625
Conversation
🦋 Changeset detectedLatest commit: 654ac8d The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
looks good, just minor documentation comments improvements
...(res.data.alias && { name: res.data.alias }), | ||
metadata: res.data.metadata ?? {}, | ||
startedAt: new Date(res.data.startedAt), | ||
endAt: new Date(res.data.endAt), |
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.
what if the sandbox is still running? It it the expected end time then? It might be good to explain in then in the documentation as it isn't clear imo
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 returned from the API already, should be the timestamp when the sandbox is expected to expire
@@ -19,5 +19,10 @@ sandboxTest.skipIf(isDebug)('shorten then lenghten timeout', async ({ sandbox }) | |||
|
|||
await wait(6000) | |||
|
|||
await sandbox.isRunning() | |||
expect(await sandbox.isRunning()).toBeTruthy() |
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.
why this change?
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.
before, I believe the test would pass even if the promise resolved with false
, it should however check that the Promise resolves with true
, explicitly
I have addressed the comments and @dobrac has approved already
getInfo/get_info
methods to the SDKs #517