Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sometimes failing integration tests #226

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

cthulhu-rider
Copy link
Contributor

detected in unrelated PR

btw do we even care about Date response header? Gateway handler do not set it explicitly

Integration tests added within 3747724
could fail on comparison of object's creation timestamp with `Date` HTTP
response header. The tests asserted that they are equal which isn't true in general: according to https://datatracker.ietf.org/doc/html/rfc2616#section-14.18,
`Date` header carries time when the response - not the object - was
originated. At the same time, test results were inconsistent since
values could equal if everything went pretty fast.

Now tests assert that the response is created not earlier than the
object.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@cthulhu-rider cthulhu-rider changed the title rest-gw: Fix sometimes failing integration tests Fix sometimes failing integration tests Jun 25, 2024
Copy link

codecov bot commented Jun 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 22.11%. Comparing base (8b9facd) to head (fb1b3ff).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #226   +/-   ##
=======================================
  Coverage   22.11%   22.11%           
=======================================
  Files          17       17           
  Lines        3305     3305           
=======================================
  Hits          731      731           
  Misses       2439     2439           
  Partials      135      135           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@roman-khimov roman-khimov merged commit 9005ba8 into master Jun 25, 2024
13 checks passed
@roman-khimov roman-khimov deleted the bugfix/integration-test-date branch June 25, 2024 15:29
@tatiana-nspcc
Copy link
Contributor

Nice improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants