File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -226,9 +226,9 @@ func (p *Platform) PreRun() {
226226 }
227227 }
228228 logger .Infof ("Starting DBs for following data sources: [%s]..." , logging .Keys (configs ))
229- close , err := postgres2 .StartPostgresWithFmt (collections .Values (configs ))
229+ closeF , err := postgres2 .StartPostgresWithFmt (collections .Values (configs ))
230230 gomega .Expect (err ).ToNot (gomega .HaveOccurred (), "failed to start dbs" )
231- p .cleanDB = close
231+ p .cleanDB = closeF
232232}
233233
234234func (p * Platform ) PostRun (bool ) {
@@ -326,7 +326,10 @@ func (p *Platform) Cleanup() {
326326 if p .metricsAggregatorProcess != nil {
327327 p .metricsAggregatorProcess .Signal (os .Kill )
328328 }
329- p .cleanDB ()
329+
330+ if p .cleanDB != nil {
331+ p .cleanDB ()
332+ }
330333}
331334
332335func (p * Platform ) CheckTopology () {
You can’t perform that action at this time.
0 commit comments