-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
Sharding
Currently, assert.soon accepts a message as a parameter. However, the string is a fixed message that is constructed during the call to assert.soon. It would be nice to have some way of constructing helpful error messages when assert.soon timeout is triggered.
Something like this or better:
let str = "msg"; assert.soon(() => { str = "I changed msg"; return false; }, () => { return str; });
- duplicates
-
SERVER-33034 Change assertion functions to accept a function returning a string as the message parameter
- Closed