Skip to content

Commit cdb4011

Browse files
committed
Even more work on intermittently failing tests.
1 parent fc0520e commit cdb4011

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/concurrent/edge/lock_free_linked_set.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ def remove(item)
111111
succ = curr.next_node
112112
removed = curr.successor_reference.compare_and_set succ, succ, false, true
113113

114-
next_node unless removed
114+
#next_node unless removed
115+
continue unless removed
115116

116117
pred.successor_reference.compare_and_set curr, succ, false, false
117118

spec/concurrent/edge/lock_free_linked_set_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@
128128
end
129129

130130
context 'in a multi-threaded environment' do
131-
it 'adds the items to the set', buggy: true do
131+
132+
it 'adds the items to the set' do
132133
to_insert = %w(one two three four five six)
133134
to_insert.each { |item| subject << item }
134135

@@ -148,7 +149,7 @@
148149
expect(subject.contains? 'six').to be true
149150
end
150151

151-
it 'does not recognize the existence of the item when removed', buggy: true do
152+
it 'does not recognize the existence of the item when removed' do
152153
to_insert = %w(one two three four five six)
153154
to_insert.each { |item| subject << item }
154155

0 commit comments

Comments
 (0)