Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "fix tests"
Browse files Browse the repository at this point in the history
This reverts commit 4fcc9a5.
mike-dydx committed May 23, 2024
1 parent c1d80ce commit fe576d0
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -578,6 +578,11 @@ open class BaseTests(private val maxSubaccountNumber: Int, internal val useParen
) {
if (data != null) {
assertNotNull(obj)
assertEquals(
parser.asBool(data["needsMarginMode"]) ?: false,
obj.needsMarginMode,
"$trace.needsMarginMode $doesntMatchText",
)
assertEquals(
parser.asBool(data["needsSize"]) ?: false,
obj.needsSize,
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ class V4ParentSubaccountTests : V4BaseTests(true) {
"current": -0.12
},
"subaccountNumber": 0,
"marketType": "CROSS"
"marginMode": "CROSS"
}
}
},
@@ -132,7 +132,7 @@ class V4ParentSubaccountTests : V4BaseTests(true) {
"current": 7962.44
},
"subaccountNumber": 128,
"marketType": "ISOLATED"
"marginMode": "ISOLATED"
}
},
"orders": {
@@ -150,7 +150,7 @@ class V4ParentSubaccountTests : V4BaseTests(true) {
"reduceOnly": false,
"goodTilBlock": "5837",
"subaccountNumber": 128,
"marketType": "ISOLATED"
"marginMode": "ISOLATED"
}
}
}
@@ -194,7 +194,7 @@ class V4ParentSubaccountTests : V4BaseTests(true) {
"current": -0.12
},
"subaccountNumber": 0,
"marketType": "CROSS"
"marginMode": "CROSS"
},
"RUNE-USD": {
"id": "RUNE-USD",
@@ -239,7 +239,7 @@ class V4ParentSubaccountTests : V4BaseTests(true) {
"current": 0.0397
},
"subaccountNumber": 128,
"marketType": "ISOLATED"
"marginMode": "ISOLATED"
}
},
"pendingPositions": [
@@ -257,7 +257,8 @@ class V4ParentSubaccountTests : V4BaseTests(true) {
},
"equity": {
"current": 500.0
}
"subaccountNumber": 128,
"marginMode": "ISOLATED"
}
]
}

0 comments on commit fe576d0

Please sign in to comment.