mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 23:16:53 +00:00
exchanges: Improve TestMain usage (#1946)
* exchanges: Improve TestMain usage * exchanges: Further cleanups * exchanges/kucoin: update TestProcessOrderbook to use test context * refactor: rename SetRunning to SetRunningURL for clarity across exchanges
This commit is contained in:
@@ -50,7 +50,7 @@ const (
|
||||
func TestMain(m *testing.M) {
|
||||
k = new(Kraken)
|
||||
if err := testexch.Setup(k); err != nil {
|
||||
log.Fatal(err)
|
||||
log.Fatalf("Kraken Setup error: %s", err)
|
||||
}
|
||||
if apiKey != "" && apiSecret != "" {
|
||||
k.API.AuthenticatedSupport = true
|
||||
|
||||
Reference in New Issue
Block a user