Skip to content

mime: TestExtensionsByTypeMultiple broken on windows #10278

@cookieo9

Description

@cookieo9

On my windows machine (Windows 8.1 64-bit), the TestExtensionsByTypeMultiple test breaks consistently with the following error at tip:

--- FAIL: TestExtensionsByTypeMultiple (0.00s)
        type_test.go:76: ExtensionsByType("text/html") = [.htm .html .shtml]; want [.htm .html]

This is likely the result of the MIME types map being made using data from the registry, and my system having an extra entry for text/html that the test wasn't expecting.

I did not add the entry manually myself, so it's either a default for my version of the OS (compared to the builder's) or an addition made by a program I installed. Either case, the test should be probably be made more robust, or ignore the registry's mime-entries during testing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions