mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
Avoid printing in S3 tests (#7043)
This commit is contained in:
parent
5a80cbec2a
commit
7f2d439baa
@ -63,12 +63,16 @@ func TestReadGWMetadata(t *testing.T) {
|
|||||||
for i, tt := range tests {
|
for i, tt := range tests {
|
||||||
buf := bytes.NewBufferString(tt.metaStr)
|
buf := bytes.NewBufferString(tt.metaStr)
|
||||||
m, err := readGWMetadata(context.Background(), *buf)
|
m, err := readGWMetadata(context.Background(), *buf)
|
||||||
t.Log(m)
|
|
||||||
if err != nil && tt.pass {
|
if err != nil && tt.pass {
|
||||||
t.Errorf("Test %d: Expected parse gw metadata to succeed, but failed", i)
|
t.Errorf("Test %d: Expected parse gw metadata to succeed, but failed", i)
|
||||||
}
|
}
|
||||||
if err == nil && !tt.pass {
|
if err == nil && !tt.pass {
|
||||||
t.Errorf("Test %d: Expected parse gw metadata to succeed, but failed", i)
|
t.Errorf("Test %d: Expected parse gw metadata to succeed, but failed", i)
|
||||||
}
|
}
|
||||||
|
if err == nil {
|
||||||
|
if m.Version != gwMetaVersion {
|
||||||
|
t.Errorf("Test %d: Expected version %s, but failed with %s", i, gwMetaVersion, m.Version)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user