Skip to content

Commit

Permalink
Use a non-platform specific error code in test
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosgjs committed Oct 16, 2023
1 parent 93b4fb2 commit affe37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_hierarchicalstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def retry_find():
assert FIND_RETRIES == find_mock.call_count

# if it's not a SlowDown error then we shouldn't retry
find_mock.side_effect = OSError(errno.EAUTH, "auth")
find_mock.side_effect = OSError(errno.EFAULT, "auth")
with pytest.raises(OSError):
retry_find()
assert FIND_RETRIES + 1 == find_mock.call_count
Expand Down

0 comments on commit affe37c

Please sign in to comment.