Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test failure in static/ #274

Open
nicolasStevenin opened this issue Oct 29, 2018 · 2 comments
Open

test failure in static/ #274

nicolasStevenin opened this issue Oct 29, 2018 · 2 comments

Comments

@nicolasStevenin
Copy link

Hi,

command: go test -buildmode pie -compiler gc -ldflags "-X github.com/google/martian/version=2.1.0 -extldflags '-Wl,-z,relro  '"
testing: github.com/google/martian/static
--- FAIL: TestFileExistsInBothExplictlyMappedPathAndInferredPath (0.00s)
    static_file_modifier_test.go:115: res.Header.Get('Content-Type'): got , want text/plain; charset=utf-8
--- FAIL: TestStaticModifierExplicitPathMapping (0.01s)
    static_file_modifier_test.go:171: res.Header.Get('Content-Type'): got , want text/plain; charset=utf-8
--- FAIL: TestStaticModifierOnRequest (0.00s)
    static_file_modifier_test.go:222: res.Header.Get('Content-Type'): got , want text/plain; charset=utf-8
--- FAIL: TestRequestOverHTTPS (0.00s)
    static_file_modifier_test.go:275: res.Header.Get('Content-Type'): got , want text/plain; charset=utf-8
--- FAIL: TestModifierFromJSON (0.00s)
    static_file_modifier_test.go:359: res.Header.Get('Content-Type'): got , want text/plain; charset=utf-8
    static_file_modifier_test.go:398: res.Header.Get('Content-Type'): got , want text/plain; charset=utf-8
--- FAIL: TestStaticModifierSingleRangeRequest (0.00s)
    static_file_modifier_test.go:473: res.Header.Get('Content-Type'): got , want text/plain; charset=utf-8
FAIL
exit status 1
FAIL    github.com/google/martian/static        0.020s
@ssgelm
Copy link

ssgelm commented Feb 4, 2019

I ran into this myself. It was caused by the mime-types package missing (on Debian at least).

@hueich
Copy link
Collaborator

hueich commented Jul 6, 2019

Thanks @ssgelm for posting a solution. @nicolasStevenin, were you able to get it to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants