From fbc9b0aa97298eacf4d0b6bf42b0f937717262c5 Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Tue, 26 Mar 2019 16:53:38 +1100 Subject: [PATCH] Bugfix: OKCoin/OKEX SetRealOrderDefaults --- exchanges/okcoin/okcoin_test.go | 2 +- exchanges/okex/okex_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exchanges/okcoin/okcoin_test.go b/exchanges/okcoin/okcoin_test.go index d0b2f421..74e7aaf9 100644 --- a/exchanges/okcoin/okcoin_test.go +++ b/exchanges/okcoin/okcoin_test.go @@ -39,7 +39,7 @@ func TestSetDefaults(t *testing.T) { // TestSetRealOrderDefaults Sets test defaults when test can impact real money/orders func TestSetRealOrderDefaults(t *testing.T) { TestSetDefaults(t) - if areTestAPIKeysSet() || !canManipulateRealOrders { + if !areTestAPIKeysSet() || !canManipulateRealOrders { t.Skip("Ensure canManipulateRealOrders is true and your API keys are set") } } diff --git a/exchanges/okex/okex_test.go b/exchanges/okex/okex_test.go index 20a04981..bb4a42bc 100644 --- a/exchanges/okex/okex_test.go +++ b/exchanges/okex/okex_test.go @@ -40,7 +40,7 @@ func TestSetDefaults(t *testing.T) { // TestSetRealOrderDefaults Sets test defaults when test can impact real money/orders func TestSetRealOrderDefaults(t *testing.T) { TestSetDefaults(t) - if areTestAPIKeysSet() || !canManipulateRealOrders { + if !areTestAPIKeysSet() || !canManipulateRealOrders { t.Skip("Ensure canManipulateRealOrders is true and your API keys are set") } }