Skip to content

Commit 06663a6

Browse files
committed
fix tests
1 parent 86c95ca commit 06663a6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

v2/margin_service_test.go

+7-3
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,20 @@ func (s *marginTestSuite) TestBorrowRepayBorrow() {
103103
_type := MarginAccountBorrow
104104
s.assertReq(func(r *request) {
105105
e := newSignedRequest().setFormParams(params{
106-
"asset": asset,
107-
"amount": amount,
108-
"type": string(_type),
106+
"asset": asset,
107+
"amount": amount,
108+
"isIsolated": false,
109+
"symbol": "",
110+
"type": string(_type),
109111
})
110112
s.assertRequestEqual(e, r)
111113
})
112114
res, err := s.client.NewMarginBorrowRepayService().
113115
Asset(asset).
114116
Amount(amount).
115117
Type(_type).
118+
IsIsolated(false). // can be omitted when IsIsolated is false
119+
Symbol(""). // can be omitted when IsIsolated is false
116120
Do(newContext())
117121
s.r().NoError(err)
118122
e := &TransactionResponse{

0 commit comments

Comments
 (0)