mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Tests: Various race fixes and move TestFixtureToDataHandler (#1534)
* Tests: Move and simplify TestFixtureToDataHandler * Currency: Fix PairsManager.Load breaking matcher * Tests: Add multi-instance cache to UpdatePairsOnce * Kraken: Fix TestUpdateTickers race error Calling StorePairs on global instance can lead to race * Bitfinex: Fix TestUpdateTickers racing intermittently * Currency: Fix concurrent access to PM formats * Currency: Fix SupportsAsset implementation This should delegate entirely to PairManager's IsAssetSupported * Okx: Fix PM intrusion, rm GetPairFromInstrumentID * Exchange: Fix SetGlobalPairsManager to set asset enabled * Bitflyer: Fix race on set TestGetCurrURL TestGetCurrencyTradeURL would fail sometimes due to sequencing of enabling futures but not having pairs for it. * Tests: Simplify usage pattern for FixtureToDH
This commit is contained in:
10
testdata/configtest.json
vendored
10
testdata/configtest.json
vendored
@@ -667,12 +667,14 @@
|
||||
},
|
||||
"useGlobalFormat": true,
|
||||
"lastUpdated": 1566798411,
|
||||
"assetTypes": [
|
||||
"spot",
|
||||
"futures"
|
||||
],
|
||||
"pairs": {
|
||||
"futures": {
|
||||
"assetEnabled": true,
|
||||
"enabled": "",
|
||||
"available": ""
|
||||
},
|
||||
"spot": {
|
||||
"assetEnabled": true,
|
||||
"enabled": "BTC_JPY,ETH_BTC,BCH_BTC",
|
||||
"available": "BTC_JPY,FXBTC_JPY,ETH_BTC,BCH_BTC"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user