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

add testcase in generic_error_test.go #1402

Merged
merged 1 commit into from
Apr 18, 2017

Conversation

chchliang
Copy link

add testcase with function Error(),Code() in generic_error_test.go

Signed-off-by: chchliang [email protected]

@crosbymichael
Copy link
Member

crosbymichael commented Apr 12, 2017

LGTM

Approved with PullApprove

}
} else {
if msg := err.Error(); msg == v.errmsg {
t.Fatalf("expected err msg %q but %q", msg, v.errmsg)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we are testing that they aren't equal but the message doesn't say that.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrunalp
I haved changed the error messages.

@chchliang chchliang force-pushed the generictest branch 3 times, most recently from cad9318 to 986dd34 Compare April 14, 2017 02:39
@dqminh
Copy link
Contributor

dqminh commented Apr 15, 2017

LGTM

Approved with PullApprove

t.Fatalf("expected err(%q) equal errmsg(%q)", msg, v.errmsg)
}
if v.cause != "" && msg == v.errmsg {
t.Fatalf("upexpected err(%q) equal errmsg(%q)", msg, v.errmsg)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: upexpected -> unexpected

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrunalp
I have modified. thanks!

@cyphar
Copy link
Member

cyphar commented Apr 18, 2017

LGTM.

Approved with PullApprove

@dqminh
Copy link
Contributor

dqminh commented Apr 18, 2017

LGTM

Approved with PullApprove

@dqminh dqminh merged commit 9f1ef73 into opencontainers:master Apr 18, 2017
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

Successfully merging this pull request may close these issues.

5 participants