Skip to content
Snippets Groups Projects
Closed Test fails in Go 1.11.1 in ./cmd/repo-updater/internal/externalservice/github/client_test.go (passes on Go 1.11)
  • View options
  • Test fails in Go 1.11.1 in ./cmd/repo-updater/internal/externalservice/github/client_test.go (passes on Go 1.11)

  • View options
  • Closed Issue created by Warren Gifford

    Created by: nicksnyder

    I am not sure why this isn't running and failing on CI, but this fails locally.

    $ go test ./cmd/repo-updater/internal/externalservice/github/
    --- FAIL: TestUnmarshal (0.00s)
        client_test.go:53: Unexpected error message [{"FieldA": 1}]
            got:  graphql: cannot unmarshal at offset 13: before "[{\"FieldA\": 1"; after "}]": json: cannot unmarshal number into Go struct field result.FieldA of type string
            want: graphql: cannot unmarshal at offset 13: before "[{\"FieldA\": 1"; after "}]": json: cannot unmarshal number into Go value of type string
        client_test.go:53: Unexpected error message [{"FieldA": "hi", "FieldB": "bye"},{"FieldA": "hi"...
            got:  graphql: cannot unmarshal at offset 3414: before ", \"FieldB\": \"bye\"},{\"FieldA\": \"hi\", \"FieldB\": \"bye\"},{\"FieldA\": \"hi\", \"FieldB\": \"bye\"}, {\"FieldA\": 1"; after "}, {\"FieldA\": \"hi\", \"FieldB\": \"bye\"},{\"FieldA\": \"hi\", \"FieldB\": \"bye\"},{\"FieldA\": \"hi\", \"FieldB\": \"b": json: cannot unmarshal number into Go struct field result.FieldA of type string
            want: graphql: cannot unmarshal at offset 3414: before ", \"FieldB\": \"bye\"},{\"FieldA\": \"hi\", \"FieldB\": \"bye\"},{\"FieldA\": \"hi\", \"FieldB\": \"bye\"}, {\"FieldA\": 1"; after "}, {\"FieldA\": \"hi\", \"FieldB\": \"bye\"},{\"FieldA\": \"hi\", \"FieldB\": \"bye\"},{\"FieldA\": \"hi\", \"FieldB\": \"b": json: cannot unmarshal number into Go value of type string
    FAIL
    FAIL	github.com/sourcegraph/sourcegraph/cmd/repo-updater/internal/externalservice/github	0.019s

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first