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:
Ryan O'Hara-Reid
2021-09-03 11:59:52 +10:00
committed by GitHub
parent a1a667bab9
commit a54c5107f4
12 changed files with 251 additions and 72 deletions

View File

@@ -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)