atc: close the workerConn when exiting
atc/integration tests were failing because the db could not be dropped
due to active sessions from the new workerConn
@@ -608,7 +608,7 @@ func (cmd *RunCommand) Runner(positionalArguments []string) (ifrit.Runner, error
}
onExit := func() {
- for _, closer := range []Closer{lockConn, apiConn, backendConn, gcConn, storage} {
+ for _, closer := range []Closer{lockConn, apiConn, backendConn, gcConn, storage, workerConn} {
closer.Close()
}
