Skip to content

Conversation

notapatch
Copy link
Contributor

@notapatch notapatch commented Sep 23, 2019

  • Problem:
    • the tests fabricate three future workshops without specifying an order
    • the test asserts that three future workshops appear in date order
  • Fix: test asserts workshops are present but not the order of appearance

This broke PR #1056 earlier today on "#upcoming returns a list of all upcoming workshops" but its sibling test could have just as easily broken

Screenshot 2019-09-23 at 11 51 04

note: the bot forced pushed a couple of hours later and passed the second time

@notapatch notapatch force-pushed the pr-listable_spec_flaky branch from 63bdbc4 to 04869bd Compare September 23, 2019 11:01
@notapatch notapatch changed the title fix: listable_spec flaky test introduce match_array fix: listable_spec flaky test - introduce match_array Sep 23, 2019
@notapatch notapatch force-pushed the pr-listable_spec_flaky branch from 04869bd to 6efd456 Compare September 23, 2019 11:09
@notapatch notapatch changed the title fix: listable_spec flaky test - introduce match_array fix: listable_spec flaky scope test - introduce match_array Sep 23, 2019
@notapatch notapatch force-pushed the pr-listable_spec_flaky branch from 6efd456 to e75f481 Compare September 23, 2019 12:33
Copy link
Contributor

@matyikriszta matyikriszta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@notapatch thanks for the fix 👍, this needs a rebase but otherwise good to go.

  - Problem:
    - the tests fabricate three future workshops without specifying
      an order
    - the test asserts that three future workshops appear in date
      order
  - Fix: test asserts workshops are present but not the order of
         appearance
@notapatch notapatch force-pushed the pr-listable_spec_flaky branch from e75f481 to 4a1e423 Compare September 27, 2019 21:42
@notapatch
Copy link
Contributor Author

notapatch commented Sep 27, 2019

I change only test code and coverage has decreased?? Say what now.

@matyikriszta
Copy link
Contributor

matyikriszta commented Sep 27, 2019

@notapatch yes, sometimes it does that and I have no idea why, this really shouldn't decrease coverage in my opinion. I'm still happy to merge it if you are. I'm going to look into whether we can set the threshold for reporting decrease to a higher number, like maybe 0.5% or so.

@notapatch
Copy link
Contributor Author

Absolutely!

@matyikriszta matyikriszta merged commit f0c2ae1 into codebar:master Sep 27, 2019
@notapatch notapatch deleted the pr-listable_spec_flaky branch September 28, 2019 20:38
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.

2 participants