Skip to content

Lesson 9 - Winner is always the same in unit test? #2581

Answered by othaime-en
levblanc asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @levblanc since we are using a Mock in our local environment, we expect the winner to always be the same because the mock doesn't generate randomness. However in a testnet or mainnet, you are guaranteed to get a random winner.
Checkout this explanation by Patrick.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by alymurtazamemon
Comment options

You must be logged in to vote
2 replies
@levblanc
Comment options

@krakxn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants