Skip to content

Commit

Permalink
fix dont block on ourself and edit TestTwoConflictKeys to track this
Browse files Browse the repository at this point in the history
  • Loading branch information
wlawt committed Apr 16, 2024
1 parent 106d6d9 commit a0fa9fa
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,13 +502,8 @@ func TestTwoConflictKeys(t *testing.T) {
for k := 0; k < i+1; k++ {
s.Add(ids.GenerateTestID().String(), state.Write)
}
if i == 0 || i == 1 {
s.Add(conflictKey1, state.Write)
s.Add(conflictKey2, state.Write)
} else {
s.Add(conflictKey1, state.Read)
s.Add(conflictKey2, state.Read)
}
s.Add(conflictKey1, state.Read)
s.Add(conflictKey2, state.Write)
ti := i
e.Run(s, func() error {
if ti == 10 {
Expand Down

0 comments on commit a0fa9fa

Please sign in to comment.