Skip to content

Commit

Permalink
Easier local Kafka integration tests (#8107)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey Kulik <[email protected]>
GitOrigin-RevId: 1affd42c1428e6c62917fe455a56003937285b1d
  • Loading branch information
2 people authored and Manul from Pathway committed Jan 29, 2025
1 parent 34ae6b9 commit 9eb8756
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration_tests/kafka/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def test_kafka_simple_wrapper_bytes_io(
kafka_context.fill(["foo", "bar"])

table = pw.io.kafka.simple_read(
"kafka:9092",
kafka_context.default_rdkafka_settings()["bootstrap.servers"],
kafka_context.input_topic,
)
pw.io.jsonlines.write(table, tmp_path / "output.jsonl")
Expand All @@ -178,7 +178,7 @@ def test_kafka_simple_wrapper_bytes_io(
# check that reread will have all these messages again
G.clear()
table = pw.io.kafka.simple_read(
"kafka:9092",
kafka_context.default_rdkafka_settings()["bootstrap.servers"],
kafka_context.input_topic,
)
pw.io.jsonlines.write(table, tmp_path / "output.jsonl")
Expand All @@ -201,7 +201,7 @@ def test_kafka_simple_wrapper_plaintext_io(
kafka_context.fill(["foo", "bar"])

table = pw.io.kafka.simple_read(
"kafka:9092",
kafka_context.default_rdkafka_settings()["bootstrap.servers"],
kafka_context.input_topic,
format="plaintext",
)
Expand All @@ -211,7 +211,7 @@ def test_kafka_simple_wrapper_plaintext_io(
# check that reread will have all these messages again
G.clear()
table = pw.io.kafka.simple_read(
"kafka:9092",
kafka_context.default_rdkafka_settings()["bootstrap.servers"],
kafka_context.input_topic,
format="plaintext",
)
Expand Down

0 comments on commit 9eb8756

Please sign in to comment.