Promises and async/await never resolve in jasmine tests. I believe this because jasmine-gjs uses a nested GMainLoop to run tests, while Promises are probably being queued in the outermost event loop.
In GJS, nested main loops will necessarily block the containing loop until g_main_loop_quit() is called, so any Promises will timeout. I'm also guessing the reason GTask async functions do work, is because they're smart enough to use the innermost loop to queue their GAsyncReadyCallback sources.
Promises and async/await never resolve in jasmine tests. I believe this because jasmine-gjs uses a nested GMainLoop to run tests, while Promises are probably being queued in the outermost event loop.
In GJS, nested main loops will necessarily block the containing loop until
g_main_loop_quit()
is called, so any Promises will timeout. I'm also guessing the reason GTask async functions do work, is because they're smart enough to use the innermost loop to queue theirGAsyncReadyCallback
sources.