From c372c0e143c671a51a7478c645d0f12c1efba511 Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Wed, 13 Nov 2024 07:58:41 +0700 Subject: [PATCH] fixup! Config: Move assetEnabled upgrade to Version management --- exchanges/order/order_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/exchanges/order/order_test.go b/exchanges/order/order_test.go index 04c0258d44a..db88086316f 100644 --- a/exchanges/order/order_test.go +++ b/exchanges/order/order_test.go @@ -22,7 +22,7 @@ import ( var errValidationCheckFailed = errors.New("validation check failed") -func TestSubmit_Validate(t *testing.T) { +func TestSubmitValidate(t *testing.T) { t.Parallel() testPair := currency.NewPair(currency.BTC, currency.LTC) tester := []struct { @@ -48,14 +48,10 @@ func TestSubmit_Validate(t *testing.T) { { ExpectedErr: ErrAssetNotSet, - Submit: &Submit{Exchange: "test", Pair: testPair}, - }, // valid pair but invalid asset - { - ExpectedErr: asset.ErrNotSupported, Submit: &Submit{ Exchange: "test", Pair: testPair, - AssetType: 255, + AssetType: asset.Empty, }, }, // valid pair but invalid asset {