mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 23:16:51 +00:00
rpcserver/exchanges: Add additional param checks plus other minor bugfixes/improvements (#652)
* deleting the unwanted file created during testing + adding more verbose errors for cli * wip * checking params throughout wip * improving errors * wip * thrasher patch * better err name * whip * testing and fixing errors WIP * upgrades and better errors * broken test * wip * adding some tests * using tempDir * mini improvement * little changes * better time check * fixing error * more glorious changes * end of day wip * shazzy changes * checking error * appveyor * last changes:
This commit is contained in:
@@ -37,13 +37,13 @@ func CreateTestBot(t *testing.T) *Engine {
|
||||
}
|
||||
|
||||
if bot.GetExchangeByName(testExchange) == nil {
|
||||
err := bot.LoadExchange(testExchange, false, nil)
|
||||
err = bot.LoadExchange(testExchange, false, nil)
|
||||
if err != nil {
|
||||
t.Fatalf("SetupTest: Failed to load exchange: %s", err)
|
||||
}
|
||||
}
|
||||
if bot.GetExchangeByName(fakePassExchange) == nil {
|
||||
err := addPassingFakeExchange(testExchange, bot)
|
||||
err = addPassingFakeExchange(testExchange, bot)
|
||||
if err != nil {
|
||||
t.Fatalf("SetupTest: Failed to load exchange: %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user