Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Use random topic in eg.streamMessage #932

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Sep 9, 2024

This avoids a test accidentally coming to depend on the particular topic name that eg.streamMessage happens to choose by default.

Discussed previously at:
#787 (comment)

For convenience, we preserve the fact that successive calls to eg.streamMessage without a topic argument will get the same topic each time. (This saves various test cases from having to specify the topic just to ensure all their messages have some common topic.)

This avoids a test accidentally coming to depend on the particular
topic name that `eg.streamMessage` happens to choose by default.

Discussed previously at:
  zulip#787 (comment)

For convenience, we preserve the fact that successive calls to
`eg.streamMessage` without a `topic` argument will get the same
topic each time.  (This saves various test cases from having to
specify the topic just to ensure all their messages have some
common topic.)
@gnprice gnprice added the maintainer review PR ready for review by Zulip maintainers label Sep 9, 2024
@chrisbobbe
Copy link
Collaborator

Thanks, LGTM! Merging.

@chrisbobbe chrisbobbe merged commit 34da52f into zulip:main Sep 9, 2024
1 check passed
@gnprice gnprice deleted the pr-test-topic branch September 9, 2024 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer review PR ready for review by Zulip maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants