Open eserte opened 6 years ago
It looks like that's being caused by the new Mojolicious streams code: A weakened reference is becoming undef
, and then a method is being called on it. https://github.com/kraih/mojo/blob/master/lib/Mojo/IOLoop/Stream/WebSocketServer.pm#L10
It doesn't seem to me that my test is doing anything too outlandish, except maybe making multiple Test::Mojo objects and having them all running at the same time. It seemed to work, but that doesn't make it a feature.
Checking for !$self
in the Mojo::IOLoop::Stream::WebSocketServer code before calling the method solves the problem and makes the tests pass, but I'm not going to risk being told off for reporting something that isn't a bug to Mojolicious again, so I guess I'll just wait and see if someone else comes across this...
The pubsub.t test started to fail on my smokers:
Statistical analysis suggests that the failure started with Mojolicious 7.83: