Skip to content

Commit 4d587c2

Browse files
Fixed utils/tests/test_builder.py::test_commit_schema_to_stream_then_build
1 parent 28526dd commit 4d587c2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

utils/tests/test_builder.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def test_build_spec_image_prefetch():
4040
def test_commit_schema_to_stream_then_build():
4141
try:
4242
if should_run_builder():
43-
conn = redis.StrictRedis(port=6379)
43+
db_port = int(os.getenv("DATASINK_PORT", "6379"))
44+
conn = redis.StrictRedis(port=db_port)
4445
conn.ping()
4546
conn.flushall()
4647
builder_consumer_group_create(conn, "0")
@@ -72,7 +73,7 @@ def test_commit_schema_to_stream_then_build():
7273
)
7374
assert new_builds_count == 1
7475
assert len(build_stream_fields_arr) == 1
75-
assert len(build_stream_fields_arr[0]["test_regexp"]) == ".*"
76+
assert len(build_stream_fields_arr[0]["tests_regexp"]) == ".*"
7677
assert conn.exists(STREAM_KEYNAME_NEW_BUILD_EVENTS)
7778
conn.save()
7879

@@ -91,7 +92,8 @@ def should_run_builder():
9192
def test_commit_schema_to_stream_then_build_historical_redis():
9293
try:
9394
if should_run_builder():
94-
conn = redis.StrictRedis(port=6379)
95+
db_port = int(os.getenv("DATASINK_PORT", "6379"))
96+
conn = redis.StrictRedis(port=db_port)
9597
conn.ping()
9698
conn.flushall()
9799
builder_consumer_group_create(conn, "0")

0 commit comments

Comments
 (0)