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

🔧 test(coinbase): Add wait loop for order status to ensure it is open #1915

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

dboyliao
Copy link
Collaborator

No description provided.

@dboyliao dboyliao force-pushed the dboy/coinbase-test-fix branch from a0cc16c to dbf5b80 Compare February 26, 2025 08:09
@@ -71,6 +71,17 @@ func Test_OrdersAPI(t *testing.T) {
order, err = ex.QueryOrder(ctx, types.OrderQuery{Symbol: "ETHUSD", OrderID: order.UUID, ClientOrderID: order.UUID})
assert.NoError(t, err)

// the status might be pending at the beginning. Wait until it is open
// only retry 5 times
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

@dboyliao dboyliao enabled auto-merge February 26, 2025 08:13
@dboyliao dboyliao merged commit 1929b8c into main Feb 26, 2025
3 checks passed
@dboyliao dboyliao deleted the dboy/coinbase-test-fix branch February 26, 2025 08:20
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