Skip to content

Commit

Permalink
ci: skip problematic get_or_create tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Aug 28, 2020
1 parent 95bbc25 commit 6548802
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions django_cockroachdb/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,21 @@ def mark_expected_failures(self):
# CockroachDB has more restrictive blocking than other databases.
# https://github.com/cockroachdb/django-cockroachdb/issues/153#issuecomment-664697963
'select_for_update.tests.SelectForUpdateTests.test_block',
# Since QuerySet.select_for_update() was enabled, this test is
# already skipped by the 'Database took too long to lock the row'
# logic in the test. Skipping it entirely prevents some error
# output in the logs:
# Exception in thread Thread-1:
# ...
# psycopg2.errors.SerializationFailure: restart transaction:
# TransactionRetryWithProtoRefreshError: WriteTooOldError: write
# at timestamp 1598314405.858850941,0 too old; wrote at
# 1598314405.883337663,1
'get_or_create.tests.UpdateOrCreateTransactionTests.test_creation_in_transaction',
# Sometimes fails as above or with
# AssertionError: datetime.timedelta(microseconds=28529) not
# greater than datetime.timedelta(microseconds=500000)
'get_or_create.tests.UpdateOrCreateTransactionTests.test_updates_in_transaction',
)
for test_name in skip_tests:
test_case_name, _, method_name = test_name.rpartition('.')
Expand Down

0 comments on commit 6548802

Please sign in to comment.