mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
committed by
Harshavardhana
parent
37cbcae6ba
commit
9358ee011b
@@ -55,7 +55,7 @@ func TestReduceErrs(t *testing.T) {
|
||||
// Validates list of all the testcases for returning valid errors.
|
||||
for i, testCase := range testCases {
|
||||
gotErr := reduceErrs(testCase.errs, testCase.ignoredErrs)
|
||||
if testCase.err != gotErr {
|
||||
if errorCause(gotErr) != testCase.err {
|
||||
t.Errorf("Test %d : expected %s, got %s", i+1, testCase.err, gotErr)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user