It includes a small improvement, we hit test timeout sometimes
for some reason, print out the timed out case would be very
helpful.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
| ... | ... |
@@ -11,7 +11,7 @@ clone git github.com/Microsoft/hcsshim v0.2.2 |
| 11 | 11 |
clone git github.com/Microsoft/go-winio v0.3.0 |
| 12 | 12 |
clone git github.com/Sirupsen/logrus v0.9.0 # logrus is a common dependency among multiple deps |
| 13 | 13 |
clone git github.com/docker/libtrust 9cbd2a1374f46905c68a4eb3694a130610adc62a |
| 14 |
-clone git github.com/go-check/check a625211d932a2a643d0d17352095f03fb7774663 https://github.com/cpuguy83/check.git |
|
| 14 |
+clone git github.com/go-check/check 03a4d9dcf2f92eae8e90ed42aa2656f63fdd0b14 https://github.com/cpuguy83/check.git |
|
| 15 | 15 |
clone git github.com/gorilla/context 14f550f51a |
| 16 | 16 |
clone git github.com/gorilla/mux e444e69cbd |
| 17 | 17 |
clone git github.com/kr/pty 5cf931ef8f |
| ... | ... |
@@ -681,7 +681,7 @@ func (runner *suiteRunner) runFunc(method *methodType, kind funcKind, testName s |
| 681 | 681 |
select {
|
| 682 | 682 |
case <-c.done: |
| 683 | 683 |
case <-timeout: |
| 684 |
- panic(fmt.Sprintf("test timed out after %v", runner.checkTimeout))
|
|
| 684 |
+ panic(fmt.Sprintf("%s test timed out after %v", method.String(), runner.checkTimeout))
|
|
| 685 | 685 |
} |
| 686 | 686 |
return c |
| 687 | 687 |
} |
| ... | ... |
@@ -825,7 +825,7 @@ func (runner *suiteRunner) runTest(method *methodType) *C {
|
| 825 | 825 |
select {
|
| 826 | 826 |
case <-c.done: |
| 827 | 827 |
case <-timeout: |
| 828 |
- panic(fmt.Sprintf("test timed out after %v", runner.checkTimeout))
|
|
| 828 |
+ panic(fmt.Sprintf("%s test timed out after %v", method.String(), runner.checkTimeout))
|
|
| 829 | 829 |
} |
| 830 | 830 |
return c |
| 831 | 831 |
} |