Skip to content

Commit

Permalink
fix: test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pgautier404 committed Jul 13, 2023
1 parent ba81a67 commit 30198ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/momento/topic_client/test_topics.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def subscribe_happy_path(client: CacheClient, topic_client: TopicClient, cache_n

_ = topic_client.publish(cache_name, topic_name=topic, value=value)

item_response = subscribe_response.__next__()
item_response = next(subscribe_response)
assert isinstance(item_response, TopicSubscriptionItem.Success)
assert item_response.value_string == value

Expand Down
2 changes: 1 addition & 1 deletion tests/momento/topic_client/test_topics_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def subscribe_happy_path(
subscribe_response = await topic_client_async.subscribe(cache_name, topic_name=topic)
assert isinstance(subscribe_response, TopicSubscribe.SubscriptionAsync)

item_task = subscribe_response.__anext__()
item_task = next(subscribe_response)
publish_response = await topic_client_async.publish(cache_name, topic_name=topic, value=value)

print(publish_response)
Expand Down

0 comments on commit 30198ef

Please sign in to comment.