mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-09 15:11:10 +00:00
engine: GetSubsystemsStatus fix (#773)
* engine: GetSubsystemsStatus fix * engine: force map literal to stop doubling up on keys, expanded test coverage * engine: Deploy default for migration requirement. * glorious: nits addr * glorious: suggestion * tests: fix
This commit is contained in:
@@ -69,6 +69,10 @@ func TestConnectionMonitorStart(t *testing.T) {
|
||||
|
||||
func TestConnectionMonitorStop(t *testing.T) {
|
||||
t.Parallel()
|
||||
err := (&connectionManager{started: 1}).Stop()
|
||||
if !errors.Is(err, errConnectionCheckerIsNil) {
|
||||
t.Errorf("error '%v', expected '%v'", err, errConnectionCheckerIsNil)
|
||||
}
|
||||
m, err := setupConnectionManager(&config.ConnectionMonitorConfig{})
|
||||
if !errors.Is(err, nil) {
|
||||
t.Errorf("error '%v', expected '%v'", err, nil)
|
||||
|
||||
Reference in New Issue
Block a user