Guido Wehner
09/14/2023, 10:57 AMsimon.vergauwen
09/14/2023, 11:13 AMSuspendApp is tricky, as that's coupled to OS signals 🤔
It's potentially possible on JVM, but might require some really nasty Signal OS intercepting code. I've never looked that deep.simon.vergauwen
09/14/2023, 11:14 AMSuspendApp you can test it the finalisers, but that not sure if that's worth the time and effort. Since you'd be retesting Resource which is already covered in Arrow.
In general I personally find it bad practice to re-test library code, it's typically very cost ineffective.simon.vergauwen
09/14/2023, 11:17 AMGuido Wehner
09/14/2023, 12:07 PMSuspendedApp{ either { resourceScope{
Do crazy amount of stuff
server and port bind
await
}}}
I guess this is our fault , so we have to restructure that to make it testable, or parts of itGuido Wehner
09/14/2023, 12:10 PMGuido Wehner
09/14/2023, 12:12 PMsimon.vergauwen
09/14/2023, 12:16 PMsimon.vergauwen
09/14/2023, 12:16 PMmain in different functions is quite useful for testing