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 invalid put test that make 500 error in server #115

Merged
merged 2 commits into from
Jun 18, 2019

Conversation

u5surf
Copy link
Contributor

@u5surf u5surf commented Jan 16, 2019

#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

}
}

func blob(char byte, len int) []byte {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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.


type errReader int

func (errReader) Read(p []byte) (n int, err error) {
Copy link
Collaborator

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 😉

Suggested change
func (errReader) Read(p []byte) (n int, err error) {
func (errReader) Read([]byte) (int, error) {

@coveralls
Copy link

coveralls commented Jan 16, 2019

Coverage Status

Coverage increased (+1.04%) to 90.743% when pulling 3003fb2 on u5surf:improve_test_coverage into e24eb22 on allegro:master.

cristaloleg
cristaloleg previously approved these changes Jan 17, 2019
@siennathesane siennathesane self-assigned this Jun 4, 2019
siennathesane
siennathesane previously approved these changes Jun 4, 2019
Copy link
Collaborator

@siennathesane siennathesane left a comment

Choose a reason for hiding this comment

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

LGTM

@siennathesane
Copy link
Collaborator

@u5surf can you please sign d42f76f or squash all of the commits so it can be merged? It looks good, just waiting on that.

Signed-off-by: Y.Horie <u5.horie@gmail.com>
Signed-off-by: Y.Horie <u5.horie@gmail.com>
Copy link
Collaborator

@siennathesane siennathesane left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @u5surf

@cristaloleg cristaloleg merged commit 0605c28 into allegro:master Jun 18, 2019
flisky pushed a commit to flisky/bigcache that referenced this pull request May 7, 2020
* Add invalid put test that make 500 error in server

Signed-off-by: Y.Horie <u5.horie@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants