]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: deflake a test
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 5 Mar 2014 22:56:50 +0000 (14:56 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 5 Mar 2014 22:56:50 +0000 (14:56 -0800)
I missed this one in codereview.appspot.com/70010050
Same thing, but different test.

Fixes windows-amd64-race and likely other Windows
machines failing like:
http://build.golang.org/log/0382bf0048bf5835a51a8a902df5c6fc73cd7ff5

LGTM=adg
R=rsc, adg
CC=golang-codereviews
https://golang.org/cl/71770043

src/pkg/net/http/client_test.go

index bf5c776e3c7bd4f972fde484cf551a91ffbc26f2..1f8a8b12cfae3848f6e084f6936f71314777c0d8 100644 (file)
@@ -599,8 +599,8 @@ func TestClientInsecureTransport(t *testing.T) {
 
        select {
        case v := <-errc:
-               if !strings.Contains(v, "bad certificate") {
-                       t.Errorf("expected an error log message containing 'bad certificate'; got %q", v)
+               if !strings.Contains(v, "TLS handshake error") {
+                       t.Errorf("expected an error log message containing 'TLS handshake error'; got %q", v)
                }
        case <-time.After(5 * time.Second):
                t.Errorf("timeout waiting for logged error")