Open
Conversation
| it 'should have run exactly once' do | ||
| expect(Fred.class_variable_get(:@@attempt_count)).to eq(1) | ||
| it 'runs only once', retry: 0 do | ||
| # Test logic is in the around hook to correctly capture state |
|
Thanks @ydah, can you resolve the conflicts? Should be simple. |
```
❯ bundle exec rspec spec/lib/rspec/rebound_spec.rb
.
1st Try error in ./spec/lib/rspec/rebound_spec.rb:47:
expected true
got false
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:47
2nd Try error in ./spec/lib/rspec/rebound_spec.rb:47:
expected true
got false
RSpec::Rebound: 3rd try ./spec/lib/rspec/rebound_spec.rb:47
.
1st Try error in ./spec/lib/rspec/rebound_spec.rb:56:
expected true
got false
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:56
.
1st Try error in ./spec/lib/rspec/rebound_spec.rb:65:
expected true
got false
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:65
..
1st Try error in ./spec/lib/rspec/rebound_spec.rb:95:
expected true
got false
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:95
2nd Try error in ./spec/lib/rspec/rebound_spec.rb:95:
expected true
got false
RSpec::Rebound: 3rd try ./spec/lib/rspec/rebound_spec.rb:95
.
1st Try error in ./spec/lib/rspec/rebound_spec.rb:107:
expected true
got false
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:107
2nd Try error in ./spec/lib/rspec/rebound_spec.rb:107:
expected true
got false
RSpec::Rebound: 3rd try ./spec/lib/rspec/rebound_spec.rb:107
.**
1st Try error in ./spec/lib/rspec/rebound_spec.rb:132:
OtherError
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:132
...
1st Try error in ./spec/lib/rspec/rebound_spec.rb:172:
RetryError
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:172
.
1st Try error in ./spec/lib/rspec/rebound_spec.rb:179:
RetryChildError
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:179
..
1st Try error in ./spec/lib/rspec/rebound_spec.rb:199:
Rescue me!
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:199
.**
1st Try error in ./spec/lib/rspec/rebound_spec.rb:224:
RetryError
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:224
.*
1st Try error in ./spec/lib/rspec/rebound_spec.rb:251:
expected false
got true
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:251
.
1st Try error in ./spec/lib/rspec/rebound_spec.rb:255:
expected false
got true
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:255
...
1st Try error in ./spec/lib/rspec/rebound_spec.rb:293:
let's retry once!
RSpec::Rebound: 2nd try ./spec/lib/rspec/rebound_spec.rb:293
.....
```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.