Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Fix testutils.TearDownAndVerify #none #424

Merged

Conversation

kamaleybov
Copy link
Contributor

@kamaleybov kamaleybov commented Oct 2, 2023

TL;DR

testutils.TearDownAndVerify is being used by several tests to verify that standard output contains certain strings. Currently, it always fails to read from the incorrect stream, and swallows the error. It never fails.

The fix uncovered two failing tests, which this PR also fixes.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

testutils.TearDownAndVerify:

  • close the writer and read from the reader to actually verify correctness of the output in tests
  • stop swallowing errors

Tracking Issue

None.

Follow-up issue

NA

@kamaleybov kamaleybov changed the title Fix testutils.TearDownAndVerify Fix testutils.TearDownAndVerify #none Oct 2, 2023
Signed-off-by: Kamal Eybov <[email protected]>
@kamaleybov kamaleybov marked this pull request as ready for review October 2, 2023 17:23
@codecov
Copy link

codecov bot commented Oct 4, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (be75a9e) 66.86% compared to head (027e0c7) 67.63%.

❗ Current head 027e0c7 differs from pull request most recent head ed4f17f. Consider uploading reports for the commit ed4f17f to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #424      +/-   ##
==========================================
+ Coverage   66.86%   67.63%   +0.77%     
==========================================
  Files         145      145              
  Lines        6271     5234    -1037     
==========================================
- Hits         4193     3540     -653     
+ Misses       1796     1412     -384     
  Partials      282      282              
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

see 134 files with indirect coverage changes

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

@pmahindrakar-oss pmahindrakar-oss merged commit 5fea354 into flyteorg:master Oct 5, 2023
12 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants