Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang committed Dec 6, 2024
1 parent 39283ce commit 1328580
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import exchange.dydx.abacus.payload.BaseTests
import exchange.dydx.abacus.state.manager.setAddresses
import exchange.dydx.abacus.state.v2.manager.AsyncAbacusStateManagerV2
import exchange.dydx.abacus.state.v2.manager.StateManagerAdaptorV2
import exchange.dydx.abacus.state.v2.supervisor.AccountConfigs
import exchange.dydx.abacus.state.v2.supervisor.AppConfigsV2
import exchange.dydx.abacus.tests.payloads.AbacusMockData
import exchange.dydx.abacus.utils.values
Expand Down Expand Up @@ -51,9 +52,11 @@ class V4ForegroundCycleTests : NetworkTests() {
deploymentUri = "https://api.examples.com",
deployment = "DEV",
appConfigs = if (forIsolatedMargins) {
AppConfigsV2.forAppWithIsolatedMargins
} else {
AppConfigsV2.forApp
} else {
AppConfigsV2.forApp.copy(
accountConfigs = AccountConfigs.forApp,
)
},
ioImplementations = ioImplementations,
uiImplementations = uiImplementations,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class V4TransactionTests : NetworkTests() {
stateManager = AsyncAbacusStateManagerV2(
"https://api.examples.com",
"DEV",
AppConfigsV2.forAppWithIsolatedMargins,
AppConfigsV2.forApp,
ioImplementations,
uiImplementations,
TestState(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import exchange.dydx.abacus.state.manager.WalletConnectV2
import exchange.dydx.abacus.state.manager.WalletConnection
import exchange.dydx.abacus.state.manager.WalletSegue
import kollections.JsExport
import kollections.iListOf
import kollections.toIMap

@JsExport
Expand Down Expand Up @@ -134,5 +135,6 @@ class AbacusMockData {
isSlTpLimitOrdersEnabled = true,
cctpWithdrawalOnly = true,
),
restrictedLocales = iListOf(),
)
}

0 comments on commit 1328580

Please sign in to comment.