()
| 537 | } |
| 538 | |
| 539 | func (te *test) tearDown() { |
| 540 | if te.cancel != nil { |
| 541 | te.cancel() |
| 542 | te.cancel = nil |
| 543 | } |
| 544 | |
| 545 | if te.cc != nil { |
| 546 | te.cc.Close() |
| 547 | te.cc = nil |
| 548 | } |
| 549 | |
| 550 | if te.restoreLogs != nil { |
| 551 | te.restoreLogs() |
| 552 | te.restoreLogs = nil |
| 553 | } |
| 554 | |
| 555 | if te.srv != nil { |
| 556 | te.srv.Stop() |
| 557 | } |
| 558 | for _, s := range te.srvs { |
| 559 | s.Stop() |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | // newTest returns a new test using the provided testing.T and |
| 564 | // environment. It is returned with default values. Tests should |
no test coverage detected