Skip to content

Commit f3a541f

Browse files
committed
tests(pubsub): make channel names unique per index to avoid collisions in combined exact+pattern test (#4364)
Signed-off-by: Jessica Hsiao <136421644+jh1231223@users.noreply.github.com>
1 parent 7ddb780 commit f3a541f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/tests/async_tests/test_pubsub.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -926,16 +926,16 @@ async def test_pubsub_combined_exact_and_pattern_one_client(
926926

927927
# Create dictionaries of channels and their corresponding messages
928928
exact_channels_and_messages = {
929-
"{{{}}}:{}".format("channel", get_random_string(5)): get_random_string(
929+
"{{{}}}:{}:{}".format("channel", get_random_string(5), i): get_random_string(
930930
10
931931
)
932-
for _ in range(NUM_CHANNELS)
932+
for i in range(NUM_CHANNELS)
933933
}
934934
pattern_channels_and_messages = {
935-
"{{{}}}:{}".format("pattern", get_random_string(5)): get_random_string(
935+
"{{{}}}:{}:{}".format("pattern", get_random_string(5), i): get_random_string(
936936
5
937937
)
938-
for _ in range(NUM_CHANNELS)
938+
for i in range(NUM_CHANNELS)
939939
}
940940

941941
all_channels_and_messages = {

0 commit comments

Comments
 (0)