Created
January 28, 2017 01:56
-
-
Save shiywang/a385877dad0adef13edc1d86a33a538d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GOROOT=/usr/local/go | |
GOPATH=/home/shiywang/go | |
/usr/local/go/bin/go test -c -o "/tmp/TestPodAndContainerAttach in attach_test.gogo" k8s.io/kubernetes/pkg/kubectl/cmd | |
"/tmp/TestPodAndContainerAttach in attach_test.gogo" -test.v -test.run ^TestPodAndContainerAttach$ | |
panic: expected pointer, but got invalid kind [recovered] | |
panic: expected pointer, but got invalid kind | |
goroutine 11 [running]: | |
panic(0x182bcc0, 0xc4204ac360) | |
/usr/local/go/src/runtime/panic.go:500 +0x1a1 | |
testing.tRunner.func1(0xc4205a1140) | |
/usr/local/go/src/testing/testing.go:579 +0x25d | |
panic(0x182bcc0, 0xc4204ac360) | |
/usr/local/go/src/runtime/panic.go:458 +0x243 | |
k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime.EncodeOrDie(0x7f00da9b63d8, 0xc420023710, 0x0, 0x0, 0xc420023710, 0x4e33b9) | |
/home/shiywang/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/codec.go:74 +0xce | |
k8s.io/kubernetes/pkg/kubectl/cmd.objBody(0x26c6e40, 0xc420023710, 0x0, 0x0, 0x0, 0x0) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/cmd_test.go:112 +0x77 | |
k8s.io/kubernetes/pkg/kubectl/cmd.TestPodAndContainerAttach.func1(0xc4201a1b30, 0x0, 0x0, 0xc4205cecd8) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/attach_test.go:130 +0x79 | |
k8s.io/kubernetes/vendor/k8s.io/client-go/rest/fake.roundTripperFunc.RoundTrip(0xc4203d9c80, 0xc4201a1b30, 0xc4203d9c80, 0x0, 0x0) | |
/home/shiywang/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/rest/fake/fake.go:42 +0x30 | |
net/http.send(0xc4201a1b30, 0x26c39c0, 0xc4203d9c80, 0x0, 0x0, 0x0, 0x8, 0xc4205ced08, 0xc42009c060) | |
/usr/local/go/src/net/http/client.go:256 +0x15f | |
net/http.(*Client).send(0xc4203ccc60, 0xc4201a1b30, 0x0, 0x0, 0x0, 0xc42009c060, 0x0, 0x1) | |
/usr/local/go/src/net/http/client.go:146 +0x102 | |
net/http.(*Client).doFollowingRedirects(0xc4203ccc60, 0xc4201a1b30, 0x1b63050, 0x3, 0x1, 0x0) | |
/usr/local/go/src/net/http/client.go:528 +0x5e5 | |
net/http.(*Client).Do(0xc4203ccc60, 0xc4201a1b30, 0xc4205ceef0, 0x7e50cb, 0x0) | |
/usr/local/go/src/net/http/client.go:184 +0x1ea | |
k8s.io/kubernetes/vendor/k8s.io/client-go/rest/fake.(*RESTClient).Do(0xc42009fef0, 0xc4201a1b30, 0x0, 0x24, 0x0) | |
/home/shiywang/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/rest/fake/fake.go:122 +0x64 | |
k8s.io/kubernetes/vendor/k8s.io/client-go/rest.(*Request).request(0xc42027b200, 0xc4205cf038, 0x0, 0x0) | |
/home/shiywang/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/rest/request.go:821 +0x274 | |
k8s.io/kubernetes/vendor/k8s.io/client-go/rest.(*Request).Do(0xc42027b200, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) | |
/home/shiywang/go/src/k8s.io/kubernetes/vendor/k8s.io/client-go/rest/request.go:895 +0xb7 | |
k8s.io/kubernetes/pkg/kubectl/resource.(*Helper).Get(0xc42000d140, 0x1a4701a, 0x4, 0x1a462fc, 0x3, 0x1a45d00, 0x2, 0x7f00da9b6360, 0xc42009fef0, 0xc4204ac190) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/resource/helper.go:61 +0xf3 | |
k8s.io/kubernetes/pkg/kubectl/resource.(*Info).Get(0xc42041bc80, 0x4, 0x1a4701a) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:117 +0x9a | |
k8s.io/kubernetes/pkg/kubectl/resource.RetrieveLazy(0xc42041bc80, 0x0, 0x0, 0x0, 0x0) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:646 +0x42 | |
k8s.io/kubernetes/pkg/kubectl/resource.DecoratedVisitor.Visit.func1(0xc42041bc80, 0x0, 0x0, 0x38, 0xc42000d080) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:320 +0x91 | |
k8s.io/kubernetes/pkg/kubectl/resource.(*Info).Visit(0xc42041bc80, 0xc42000d080, 0x0, 0x1b56c91) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:112 +0x42 | |
k8s.io/kubernetes/pkg/kubectl/resource.VisitorList.Visit(0xc4204ac1d0, 0x1, 0x1, 0xc42000d080, 0xc4204ac201, 0xc42000d080) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:186 +0x5b | |
k8s.io/kubernetes/pkg/kubectl/resource.(*VisitorList).Visit(0xc4204109a0, 0xc42000d080, 0x10, 0x10) | |
<autogenerated>:123 +0x6e | |
k8s.io/kubernetes/pkg/kubectl/resource.DecoratedVisitor.Visit(0x26c2e00, 0xc4204109a0, 0xc420410a40, 0x3, 0x4, 0xc4204ac200, 0x1, 0xc4204ac200) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/resource/visitor.go:325 +0xd6 | |
k8s.io/kubernetes/pkg/kubectl/resource.(*DecoratedVisitor).Visit(0xc4203785d0, 0xc4204ac200, 0x18e6c20, 0xc4203785d0) | |
<autogenerated>:158 +0x78 | |
k8s.io/kubernetes/pkg/kubectl/resource.(*Result).Infos(0xc420492fc0, 0xc4204109a0, 0xc420410a40, 0x3, 0x4, 0xc4205cf628) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/resource/result.go:111 +0xfd | |
k8s.io/kubernetes/pkg/kubectl/resource.(*Result).Object(0xc420492fc0, 0xc420492fc0, 0x4, 0xc4205cf6e0, 0x1) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/resource/result.go:125 +0x4b | |
k8s.io/kubernetes/pkg/kubectl/cmd.(*AttachOptions).Complete(0xc4205a15c0, 0x26e0b40, 0xc4203d9c20, 0xc4205cfd38, 0xc4203b9fa0, 0x1, 0x1, 0x26b8e40, 0xc4204ac0f0) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/attach.go:146 +0x432 | |
k8s.io/kubernetes/pkg/kubectl/cmd.TestPodAndContainerAttach(0xc4205a1140) | |
/home/shiywang/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/attach_test.go:138 +0xc10 | |
testing.tRunner(0xc4205a1140, 0x1b5e960) | |
/usr/local/go/src/testing/testing.go:610 +0x81 | |
created by testing.(*T).Run | |
/usr/local/go/src/testing/testing.go:646 +0x2ec | |
Process finished with exit code 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment