Skip to content

Fix download count to avoid ramdom fail on search_test#1498

Merged
homu merged 2 commits into
rubygems:masterfrom
spk:fix-ramdomly-fail-search_test
Nov 14, 2016
Merged

Fix download count to avoid ramdom fail on search_test#1498
homu merged 2 commits into
rubygems:masterfrom
spk:fix-ramdomly-fail-search_test

Conversation

@spk
Copy link
Copy Markdown
Contributor

@spk spk commented Nov 12, 2016

Comment thread test/integration/search_test.rb Outdated
setup { Rubygem.per_page = 2 }
setup do
3.times do |i|
rubygem = create(:rubygem, name: "ruby#{i}", number: "1.#{i}.0")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is changing the number necessary?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

number creates corresponding version. Our query condition has versions.indexed and without version response will always be empty.

I would suggest not to use number: "1.#{i}.0" and let it be number: "1.0.0". Someone may try to read into need of different version number when there is none.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes its useless that was my first guess but I forget to remove it

@sonalkr132 sonalkr132 added the bug label Nov 13, 2016
@spk spk force-pushed the fix-ramdomly-fail-search_test branch from 3ace60b to 83a3d0b Compare November 13, 2016 10:14
@spk
Copy link
Copy Markdown
Contributor Author

spk commented Nov 13, 2016

@segiddins @sonalkr132 updated and added 9703fe9
Cheers

@spk spk mentioned this pull request Nov 13, 2016
4 tasks
@segiddins
Copy link
Copy Markdown
Contributor

@homu r+

@homu
Copy link
Copy Markdown
Contributor

homu commented Nov 14, 2016

📌 Commit 9703fe9 has been approved by segiddins

@homu
Copy link
Copy Markdown
Contributor

homu commented Nov 14, 2016

⚡ Test exempted - status

@homu homu merged commit 9703fe9 into rubygems:master Nov 14, 2016
@spk spk deleted the fix-ramdomly-fail-search_test branch November 14, 2016 08:36
homu added a commit that referenced this pull request Dec 28, 2016
Expose rubygem reverse depencencies

![rails_reverse_dependencies_search_jquery](https://cloud.githubusercontent.com/assets/98590/7667144/605ee3a4-fbfe-11e4-94ae-6d71442aa5a5.png)

- [x] rebase after #1498 merged
- [x] Fix rubocop on rubygem_helper class
- [x] Extract aside template
- [x] Improve reverse deps queries, (ref #1508)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants