From ed868a2e119ded10cdc794e2d109210c8a6b0546 Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Thu, 12 May 2016 09:19:23 +0800 Subject: [PATCH] Update go-check 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 --- hack/vendor.sh | 2 +- vendor/src/github.com/go-check/check/check.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/vendor.sh b/hack/vendor.sh index 52f3933dbd..d1f5a61b4c 100755 --- a/hack/vendor.sh +++ b/hack/vendor.sh @@ -11,7 +11,7 @@ clone git github.com/Microsoft/hcsshim v0.2.2 clone git github.com/Microsoft/go-winio v0.3.0 clone git github.com/Sirupsen/logrus v0.9.0 # logrus is a common dependency among multiple deps clone git github.com/docker/libtrust 9cbd2a1374f46905c68a4eb3694a130610adc62a -clone git github.com/go-check/check a625211d932a2a643d0d17352095f03fb7774663 https://github.com/cpuguy83/check.git +clone git github.com/go-check/check 03a4d9dcf2f92eae8e90ed42aa2656f63fdd0b14 https://github.com/cpuguy83/check.git clone git github.com/gorilla/context 14f550f51a clone git github.com/gorilla/mux e444e69cbd clone git github.com/kr/pty 5cf931ef8f diff --git a/vendor/src/github.com/go-check/check/check.go b/vendor/src/github.com/go-check/check/check.go index 4c17a6f39d..8560750c62 100644 --- a/vendor/src/github.com/go-check/check/check.go +++ b/vendor/src/github.com/go-check/check/check.go @@ -681,7 +681,7 @@ func (runner *suiteRunner) runFunc(method *methodType, kind funcKind, testName s select { case <-c.done: case <-timeout: - panic(fmt.Sprintf("test timed out after %v", runner.checkTimeout)) + panic(fmt.Sprintf("%s test timed out after %v", method.String(), runner.checkTimeout)) } return c } @@ -825,7 +825,7 @@ func (runner *suiteRunner) runTest(method *methodType) *C { select { case <-c.done: case <-timeout: - panic(fmt.Sprintf("test timed out after %v", runner.checkTimeout)) + panic(fmt.Sprintf("%s test timed out after %v", method.String(), runner.checkTimeout)) } return c }