Match-id-dcf83e9762d769d5a52954b612df113c9bf42253

This commit is contained in:
* 2022-03-08 09:57:37 +08:00 committed by *
parent 46922ff307
commit 7dce0e69e3
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import { runAsyncEffects } from '../../../libs/horizon/src/renderer/submit/HookEffectHandler'
import { syncUpdates } from '../../../libs/horizon/src/renderer/TreeBuilder'
import { runAsyncEffects } from '../../../libs/horizon/src/renderer/submit/HookEffectHandler';
import { callRenderQueueImmediate } from '../../../libs/horizon/src/renderer/taskExecutor/RenderQueue';
function runAssertion(fn) {
try {
@ -21,7 +21,8 @@ function toMatchValue(LogUtils, expectedValues) {
}
const act = (fun) => {
syncUpdates(fun);
fun();
callRenderQueueImmediate();
runAsyncEffects();
}