Skip to content

Commit b1e9950

Browse files
committed
Uncomment test commands
1 parent 52b55d1 commit b1e9950

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/test_Producer.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ def test_transaction_api():
206206
# Any subsequent APIs will fail since init did not succeed.
207207
with pytest.raises(KafkaException) as ex:
208208
p.begin_transaction()
209-
assert ex.value.args[0].code() == KafkaError._STATE
210-
assert ex.value.args[0].retriable() is False
209+
assert ex.value.args[0].code() == KafkaError._CONFLICT
210+
assert ex.value.args[0].retriable() is True
211211
assert ex.value.args[0].fatal() is False
212212
assert ex.value.args[0].txn_requires_abort() is False
213213

@@ -218,22 +218,22 @@ def test_transaction_api():
218218
with pytest.raises(KafkaException) as ex:
219219
p.send_offsets_to_transaction([TopicPartition("topic", 0, 123)],
220220
group_metadata)
221-
assert ex.value.args[0].code() == KafkaError._STATE
222-
assert ex.value.args[0].retriable() is False
221+
assert ex.value.args[0].code() == KafkaError._CONFLICT
222+
assert ex.value.args[0].retriable() is True
223223
assert ex.value.args[0].fatal() is False
224224
assert ex.value.args[0].txn_requires_abort() is False
225225

226226
with pytest.raises(KafkaException) as ex:
227227
p.commit_transaction(0.5)
228-
assert ex.value.args[0].code() == KafkaError._STATE
229-
assert ex.value.args[0].retriable() is False
228+
assert ex.value.args[0].code() == KafkaError._CONFLICT
229+
assert ex.value.args[0].retriable() is True
230230
assert ex.value.args[0].fatal() is False
231231
assert ex.value.args[0].txn_requires_abort() is False
232232

233233
with pytest.raises(KafkaException) as ex:
234234
p.abort_transaction(0.5)
235-
assert ex.value.args[0].code() == KafkaError._STATE
236-
assert ex.value.args[0].retriable() is False
235+
assert ex.value.args[0].code() == KafkaError._CONFLICT
236+
assert ex.value.args[0].retriable() is True
237237
assert ex.value.args[0].fatal() is False
238238
assert ex.value.args[0].txn_requires_abort() is False
239239

tools/wheels/build-wheels.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ this_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1010
# Skip PyPy, Python2, old Python3 versions, musl, and x86 builds.
1111
export CIBW_SKIP="pp* cp27-* cp35-* *i686 *musllinux* $CIBW_SKIP"
1212
# Run a simple test suite
13-
#export CIBW_TEST_REQUIRES="-r tests/requirements.txt"
14-
#export CIBW_TEST_COMMAND="pytest {project}/tests/test_Producer.py"
13+
export CIBW_TEST_REQUIRES="-r tests/requirements.txt"
14+
export CIBW_TEST_COMMAND="pytest {project}/tests/test_Producer.py"
1515

1616

1717
librdkafka_version=$1

0 commit comments

Comments
 (0)