Skip to content

Commit 4e75106

Browse files
committed
テストの修正が不十分だった
1 parent f537de1 commit 4e75106

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

request_test.go

+2-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ func TestValidation(t *testing.T) {
2424

2525
r.Payload = "foo"
2626
err = r.Validate()
27-
if err == nil {
28-
t.Error("error should exists")
29-
}
30-
if err.Error() != "require field" {
31-
t.Error("unexpected error message")
27+
if err != nil {
28+
t.Error("error should not exists")
3229
}
3330
}
3431

0 commit comments

Comments
 (0)