diff --git a/exchanges/kraken/kraken_test.go b/exchanges/kraken/kraken_test.go index 1915ebddafe..e74383996cc 100644 --- a/exchanges/kraken/kraken_test.go +++ b/exchanges/kraken/kraken_test.go @@ -736,12 +736,12 @@ func TestOrders(t *testing.T) { order.Sell.Lower(), order.Limit.Lower(), 0.00000001, 0, 0, 0, &args) - if assert.NoError(t, err, "AddOrder should not error") && - assert.Len(t, resp.TransactionIds, 1, "One TransactionId should be returned") { - - id := resp.TransactionIds[0] - _, err = k.CancelExistingOrder(context.Background(), id) - assert.NoErrorf(t, err, "CancelExistingOrder should not error, Please ensure order %s is cancelled manually", id) + if assert.NoError(t, err, "AddOrder should not error") { + if assert.Len(t, resp.TransactionIds, 1, "One TransactionId should be returned") { + id := resp.TransactionIds[0] + _, err = k.CancelExistingOrder(context.Background(), id) + assert.NoErrorf(t, err, "CancelExistingOrder should not error, Please ensure order %s is cancelled manually", id) + } } }