[#290] Fix TestErrorTimeoutChecking test

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2024-02-14 14:32:17 +03:00 committed by Alexey Vanin
parent 563c1d9bd7
commit 4eb2c7fb7d
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@ This document outlines major changes between releases.
- Fix status code in GET/HEAD delete marker (#226)
- Fix `NextVersionIDMarker` in `list-object-versions` (#248)
- Fix possibility of panic during SIGHUP (#288)
- Fix flaky `TestErrorTimeoutChecking` (`make test` sometimes failed) (#290)
### Added
- Add new `frostfs.buffer_max_size_for_put` config param and sync TZ hash for PUT operations (#197)

View file

@ -38,7 +38,7 @@ func TestErrorTimeoutChecking(t *testing.T) {
t.Run("deadline exceeded", func(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Millisecond)
defer cancel()
time.Sleep(50 * time.Millisecond)
<-ctx.Done()
require.True(t, errorsFrost.IsTimeoutError(ctx.Err()))
})