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

Improve test for preserving pending assets #2910

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

Martchus
Copy link
Contributor

@Martchus Martchus commented Apr 6, 2020

  • Previously the test didn't really work, e.g. when breaking the condition
    in OpenQA::Schema::ResultSet::Assets::status the test still passed
  • Now the test checks whether the asset is deleted if when the job is
    not pending anymore to see whether the pending state actually makes a
    difference (and the test setup is correct)
  • See https://progress.opensuse.org/issues/64544 (it does not fix that
    issue but problems with the test became apparent when investigating
    it)

t/14-grutasks.t Outdated Show resolved Hide resolved
t/14-grutasks.t Outdated Show resolved Hide resolved
t/14-grutasks.t Outdated Show resolved Hide resolved
* Previously the test didn't really work, e.g. when breaking the condition
  in OpenQA::Schema::ResultSet::Assets::status the test still passed
* Now the test checks whether the asset is deleted if when the job is
  not pending anymore to see whether the pending state actually makes a
  difference (and the test setup is correct)
* See https://progress.opensuse.org/issues/64544 (it does not fix that
  issue but problems with the test became apparent when investigating
  it)
@codecov
Copy link

codecov bot commented Apr 7, 2020

Codecov Report

Merging #2910 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2910   +/-   ##
=======================================
  Coverage   93.35%   93.35%           
=======================================
  Files         190      190           
  Lines       11955    11955           
=======================================
  Hits        11161    11161           
  Misses        794      794           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9816eaa...22185d2. Read the comment docs.

@Martchus Martchus merged commit a653e61 into os-autoinst:master Apr 8, 2020
@Martchus Martchus deleted the pending-assets branch April 8, 2020 11:29
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

2 participants