Adam Cameron
it("fails if an exception is thrown", () => {
expect(() => {throw "hi"}).notToThrow()
})
This should fail.
On Lucee 5.3.7.48 it works fine.
On Lucee 5.3.8.206 it doesn't work. IE: this test passes. It also passes if I use toThrow
instead of notToThrow
.
I will try to track it back to a specific change in Lucee, but I suspect something woolly is going on in the TestBox code that makes it fragile.
NB: that is just a distilled-down repro case. My actual case was with an expression that resulted in an exception, and I tried with various other expressions that caused exceptions. All behave the same: toNotThrow
does not work.
Ping @lmajanoAdam Cameron
5.3.8.3-SNAPSHOT
docker image (where it works fine), and the next one I could find on Dockerhub: 5.3.8.42-SNAPSHOT
(where it is broken). That's quite a jump there between minor versions (compared to granularity between other ones). I had a quick look-see at the differences in the source code between each, but didn't spot anything obvious (I did not spend too much time on it, cos there were a lot of changes between those two). The Jira tickets fixed between each of those versions don't shine any light either: https://luceeserver.atlassian.net/issues/?jql=fixversion%20%20%3E%3D%205.3.8.4%20and%20fixversion%20%3C%3D%205.3.8.42, but it would not surprise me if not every change to the source code has a matching ticket.
I'm gonna see if I can just look at the TestBox code and see if I can track down the behaviour change that way.Adam Cameron
Adam Cameron
bdw429s
04/18/2022, 6:26 PMbdw429s
04/18/2022, 6:27 PMbdw429s
04/18/2022, 6:27 PMAdam Cameron
bdw429s
04/18/2022, 6:33 PMbdw429s
04/18/2022, 6:33 PMbdw429s
04/18/2022, 6:36 PMAdam Cameron
Adam Cameron
bdw429s
04/18/2022, 6:36 PMbdw429s
04/18/2022, 6:37 PMFixed in six. Not much help to me here.Yeah, as a regression that seems like it should be in 5.3.9. @zackster?
Adam Cameron
bdw429s
04/18/2022, 6:49 PM