diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2020-02-24 23:13:03 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 09:13:03 -0500 |
commit | c080d7fba34fa9114e191b171d6a810312d74343 (patch) | |
tree | eb090eeefc3d9202b6a04262aa36ce7eb77ca39d /std/encoding/toml_test.ts | |
parent | fb08cf7005c9dc781d51c7d02ae06060e44d32a3 (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/encoding/toml_test.ts')
0 files changed, 0 insertions, 0 deletions