()
| 189 | } |
| 190 | |
| 191 | func postRun() error { |
| 192 | ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) |
| 193 | defer cancel() |
| 194 | |
| 195 | if err := mongotool.Close(ctx); err != nil { |
| 196 | return fmt.Errorf("failed to close mongo connection, error: %s", err) |
| 197 | } |
| 198 | |
| 199 | return nil |
| 200 | } |
no test coverage detected