Skip to content

Fixed error messages in TestDefault #28

@ablankz

Description

@ablankz

A partial code of cors_test.go is shown below.

if s.allowedHeaders == nil {
    t.Error("c.allowedHeaders should be nil when Default")
}
if s.allowedMethods == nil {
    t.Error("c.allowedMethods should be nil when Default")
}

We believe the following message is appropriate for this.

if s.allowedHeaders == nil {
    t.Error("c.allowedHeaders must not be nil when Default")
}
if s.allowedMethods == nil {
    t.Error("c.allowedMethods must not nil when Default")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions