Skip to content

Commit

Permalink
check for topic creation
Browse files Browse the repository at this point in the history
  • Loading branch information
frsann committed Nov 17, 2022
1 parent c14bc11 commit 0a1b8a7
Showing 1 changed file with 14 additions and 1 deletion.
Expand Up @@ -313,7 +313,20 @@ def test_kafka_connect_mongosourceconnect_ingest(
)

# Give time for connectors to process the table data
time.sleep(60)
time.sleep(30)

i = 0

while i < 20:
r = requests.get(
"http://localhost:58083/connectors/source_mongodb_connector/topics"
)
data = r.json()
if "mongodb.test_db.purchases" in data:
break

i += 1
time.sleep(5)

# Run the metadata ingestion pipeline.
config_file = (test_resources_dir / "kafka_connect_to_file.yml").resolve()
Expand Down

0 comments on commit 0a1b8a7

Please sign in to comment.