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

Fixed test failures caused by disallowing trigger of Completed status and bump up sdk-js version #58

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

chrisli30
Copy link
Member

No description provided.

@@ -159,6 +153,7 @@ describe("getExecutions Tests", () => {
...WorkflowTemplate,
trigger,
smartWalletAddress: wallet.address,
maxExecution: 1000, // Set a high maxExecution to ensure the workflow is not completed; otherwise, mannually triggering a completed workflow will fail
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the second test: getExecutions Tests › options.cursor works as pagination

Simply adding this line makes the tests pass.

Choose a reason for hiding this comment

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

yup that what i mean on the chat. the error was

 9 FAILED_PRECONDITION: The workflow is not in a runable status, it has reached the limit execution or the expiration time

so we just need to fix it.

Choose a reason for hiding this comment

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

should we set it to 0? maxExeuctio = 0 mean unlimited run. the default instead of setting a big enough number like 1000

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, you are right. 0 is better. Let me update this value.

@chrisli30 chrisli30 merged commit c12cca5 into main Jan 24, 2025
4 checks passed
@chrisli30 chrisli30 deleted the chris-fix_mannual_trigger_tests branch January 24, 2025 21:55
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.

2 participants