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") } }