summaryrefslogtreecommitdiff
path: root/std/examples/chat/server_test.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2020-02-24 23:13:03 +0900
committerGitHub <noreply@github.com>2020-02-24 09:13:03 -0500
commitc080d7fba34fa9114e191b171d6a810312d74343 (patch)
treeeb090eeefc3d9202b6a04262aa36ce7eb77ca39d /std/examples/chat/server_test.ts
parentfb08cf7005c9dc781d51c7d02ae06060e44d32a3 (diff)
fix: add mutex guard for permission_prompt tests (#4105)
This PR introduces the mutex guard for the test cases which depends on the permission prompt mocking utility. permission_request test cases depend on the mocked (dummy) value of the permission_prompt result. The value is stored at static STUB_PROMPT_VALUE: AtomicBool and these test cases share this value. So we should lock at the start of these test cases. Before this change cargo test permission failed 6 times out of 20. After this change, 0 times out of 20 (on my mac).
Diffstat (limited to 'std/examples/chat/server_test.ts')
0 files changed, 0 insertions, 0 deletions