mirror of
https://github.com/versity/versitygw.git
synced 2026-09-02 22:27:13 +00:00
fix: Fixes #249, Changed ListObjects default max-keys from -1 to 1000
This commit is contained in:
committed by
Ben McClelland
parent
7eeaee8a54
commit
a67a2e5c8f
@@ -237,7 +237,7 @@ func TestParseUint(t *testing.T) {
|
||||
args: args{
|
||||
str: "",
|
||||
},
|
||||
want: -1,
|
||||
want: 1000,
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
@@ -245,7 +245,7 @@ func TestParseUint(t *testing.T) {
|
||||
args: args{
|
||||
str: "bla",
|
||||
},
|
||||
want: -1,
|
||||
want: 1000,
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
@@ -253,9 +253,17 @@ func TestParseUint(t *testing.T) {
|
||||
args: args{
|
||||
str: "-5",
|
||||
},
|
||||
want: -1,
|
||||
want: 1000,
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
name: "Parse-uint-success",
|
||||
args: args{
|
||||
str: "23",
|
||||
},
|
||||
want: 23,
|
||||
wantErr: false,
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user