backend/retry: hide final log for stat()
method
stat is only used to check the config file's existence. We don't want log output in this case.
This commit is contained in:
parent
74c783b850
commit
58dc4a6892
2 changed files with 13 additions and 2 deletions
|
@ -400,7 +400,11 @@ func TestBackendStatNotExists(t *testing.T) {
|
|||
}
|
||||
|
||||
TestFastRetries(t)
|
||||
retryBackend := New(be, 10, nil, nil)
|
||||
retryBackend := New(be, 10, func(s string, err error, d time.Duration) {
|
||||
t.Fatalf("unexpected error output %v", s)
|
||||
}, func(s string, i int) {
|
||||
t.Fatalf("unexpected log output %v", s)
|
||||
})
|
||||
|
||||
_, err := retryBackend.Stat(context.TODO(), backend.Handle{})
|
||||
test.Assert(t, be.IsNotExistFn(err), "unexpected error %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue