Skip to content

Instantly share code, notes, and snippets.

@henvic
Last active August 12, 2020 21:01
Show Gist options
  • Save henvic/e3bf3d920e37aa86c7b51f42b26acbc6 to your computer and use it in GitHub Desktop.
Save henvic/e3bf3d920e37aa86c7b51f42b26acbc6 to your computer and use it in GitHub Desktop.

Revisions

  1. henvic revised this gist Aug 12, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion description
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    go tests are failing on the latest version of Go.

    Still need to investigate. Using -race flag didn't detect any race condition, and this failure is flaky (always happening in different parts of my code).
    Still need to investigate. Using -race flag didn't detect any race condition, and this failure is happening with Mutual TLS.
  2. henvic created this gist Aug 12, 2020.
    3 changes: 3 additions & 0 deletions description
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    go tests are failing on the latest version of Go.

    Still need to investigate. Using -race flag didn't detect any race condition, and this failure is flaky (always happening in different parts of my code).
    9 changes: 9 additions & 0 deletions go1.14.7-pass
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    $ go install golang.org/dl/go1.14.7
    $ go1.14.7 download
    $ go1.14.7 test ./...
    ok github.com/henvic/httpretty (cached)
    ? github.com/henvic/httpretty/example/client [no test files]
    ? github.com/henvic/httpretty/example/httprepl [no test files]
    ? github.com/henvic/httpretty/example/server [no test files]
    ok github.com/henvic/httpretty/internal/color (cached)
    ok github.com/henvic/httpretty/internal/header (cached)
    20 changes: 20 additions & 0 deletions go1.15-failure
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    $ go version
    go version go1.15 darwin/amd64
    henvic at henvic in ~/projects/gocode/src/github.com/henvic/httpretty (master●)
    $ go test ./...
    2020/08/12 22:39:53 http: TLS handshake error from 127.0.0.1:59355: remote error: tls: bad certificate
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x133264f]

    goroutine 367 [running]:
    github.com/henvic/httpretty.TestIncomingMutualTLS.func2(0xc0005b5500, 0xc00063e240, 0x27, 0xc0003e4180)
    /Users/henvic/projects/gocode/src/github.com/henvic/httpretty/server_test.go:1822 +0x14f
    created by github.com/henvic/httpretty.TestIncomingMutualTLS
    /Users/henvic/projects/gocode/src/github.com/henvic/httpretty/server_test.go:1808 +0x7fc
    FAIL github.com/henvic/httpretty 0.574s
    ? github.com/henvic/httpretty/example/client [no test files]
    ? github.com/henvic/httpretty/example/httprepl [no test files]
    ? github.com/henvic/httpretty/example/server [no test files]
    ok github.com/henvic/httpretty/internal/color (cached)
    ok github.com/henvic/httpretty/internal/header (cached)
    FAIL