mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-30 07:26:46 +00:00
currency/manager: remove deadlock potential in concurrent operations (#1545)
* currency/manager: remove deadlock potential in concurrent operations * fix kucoin test, lets see what this does shalllllll weeeeee. * another fix in the deep dark depths --------- Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
This commit is contained in:
@@ -700,7 +700,13 @@ func TestGetFeatures(t *testing.T) {
|
||||
func TestGetPairFormat(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
_, err := new(Base).GetPairFormat(asset.Spot, true)
|
||||
b := new(Base)
|
||||
_, err := b.GetPairFormat(asset.Spot, true)
|
||||
require.ErrorIs(t, err, currency.ErrPairManagerNotInitialised)
|
||||
b.CurrencyPairs = currency.PairsManager{
|
||||
Pairs: make(currency.FullStore),
|
||||
}
|
||||
_, err = b.GetPairFormat(asset.Spot, true)
|
||||
require.ErrorIs(t, err, asset.ErrNotSupported, "Must delegate to GetFormat and error")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user