[#290] Fix TestErrorTimeoutChecking test #312

Merged
alexvanin merged 1 commit from dkirillov/frostfs-s3-gw:bugifx/290-flaky_test_error_timeout_checing into master 2024-02-21 14:48:32 +00:00
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()))
})