Skip to content

Commit 0fc31ec

Browse files
committed
(workaround for ci, to be dropped after #214 is merged)
Cherry-picking 73d22ba from #222
1 parent 2af6a9b commit 0fc31ec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/mp/test/test.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,12 @@ KJ_TEST("Make simultaneous IPC callbacks with same request_thread and callback_t
321321
setup.server->m_impl->m_fn = [&] {};
322322
foo->callFnAsync();
323323
ThreadContext& tc{g_thread_context};
324-
std::optional<Thread::Client> callback_thread, request_thread;
325-
{
324+
Thread::Client *callback_thread, *request_thread;
325+
foo->m_context.loop->sync([&] {
326326
Lock lock(tc.waiter->m_mutex);
327-
callback_thread = tc.callback_threads.at(foo->m_context.connection)->m_client;
328-
request_thread = tc.request_threads.at(foo->m_context.connection)->m_client;
329-
}
327+
callback_thread = &tc.callback_threads.at(foo->m_context.connection)->m_client;
328+
request_thread = &tc.request_threads.at(foo->m_context.connection)->m_client;
329+
});
330330

331331
setup.server->m_impl->m_fn = [&] {
332332
try

0 commit comments

Comments
 (0)