mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-24 08:29:38 +00:00
fix(mattermost): block-bodied promise executor in participation test (oxlint)
This commit is contained in:
@@ -15,7 +15,10 @@ import {
|
||||
|
||||
// Drain microtasks + the immediate queue so the fire-and-forget persistent write
|
||||
// in recordMattermostThreadParticipation has settled before we assert on it.
|
||||
const flush = (): Promise<void> => new Promise((resolve) => setImmediate(resolve));
|
||||
const flush = (): Promise<void> =>
|
||||
new Promise((resolve) => {
|
||||
setImmediate(resolve);
|
||||
});
|
||||
|
||||
function setRuntime(openKeyedStore: (options: OpenKeyedStoreOptions) => unknown): void {
|
||||
setMattermostRuntime({
|
||||
|
||||
Reference in New Issue
Block a user