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

Add unit tests for GenerateRandomString #5532

Conversation

arzonus
Copy link
Contributor

@arzonus arzonus commented Dec 22, 2023

What changed?
unit tests for GenerateRandomString have been added

Why?
GenerateRandomString was not covered by unit tests

How did you test it?
Unit tests are passed

Potential risks

Release notes

Documentation Changes

…tests_for_GenerateRandomString

# Conflicts:
#	common/util_test.go
common/util.go Outdated
if n <= 0 {
return ""
}

rand.Seed(time.Now().UnixNano())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rand.Seed could be removed. It is no longer required.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed 👍

@arzonus arzonus enabled auto-merge (squash) December 22, 2023 14:13
…tests_for_GenerateRandomString

# Conflicts:
#	common/util_test.go
@arzonus arzonus merged commit 02a9dd8 into cadence-workflow:master Dec 27, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants