-
Notifications
You must be signed in to change notification settings - Fork 588
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 invalid put test that make 500 error in server #115
Conversation
server/server_test.go
Outdated
} | ||
} | ||
|
||
func blob(char byte, len int) []byte { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome , I think all blob function should be replaced to bytes.Repeat.
server/server_test.go
Outdated
|
||
type errReader int | ||
|
||
func (errReader) Read(p []byte) (n int, err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to dropped variable for errReader
everything else can be also dropped 😉
func (errReader) Read(p []byte) (n int, err error) { | |
func (errReader) Read([]byte) (int, error) { |
5f99a7b
to
36e14c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1fd6911
to
0a2a163
Compare
Signed-off-by: Y.Horie <u5.horie@gmail.com>
Signed-off-by: Y.Horie <u5.horie@gmail.com>
0a2a163
to
3003fb2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @u5surf
* Add invalid put test that make 500 error in server Signed-off-by: Y.Horie <u5.horie@gmail.com>
#112
I also added some tests for which increase test coverage, made it indicated to be internal server error when PUT request in server.go