@@ -98,9 +98,14 @@ test("test callstack", async t => {
9898}
9999
100100const store = new Store ( )
101+ let once = true
101102let callStack :PropertyKey [ ] = [ ]
102103
103104dobEvent . on ( "debug" , debugInfo => {
105+ if ( ! once ) {
106+ return
107+ }
108+ once = false
104109callStack = debugInfo . changeList [ 0 ] . callStack
105110} )
106111
@@ -109,7 +114,7 @@ test("test callstack", async t => {
109114stopDebug ( )
110115
111116return immediate ( ( ) => t . true ( callStack . length === 6 ) )
112- } , 20 )
117+ } , 0 )
113118} )
114119
115120test ( "test overflow callstack" , async t => {
@@ -134,9 +139,14 @@ test("test overflow callstack", async t => {
134139}
135140
136141const store = new Store ( )
142+ let once = true
137143let callStack :PropertyKey [ ] = [ ]
138144
139145dobEvent . on ( "debug" , debugInfo => {
146+ if ( ! once ) {
147+ return
148+ }
149+ once = false
140150callStack = debugInfo . changeList [ 0 ] . callStack
141151} )
142152
@@ -147,7 +157,7 @@ test("test overflow callstack", async t => {
147157globalState . getCallstackMaxCount = 50
148158
149159return immediate ( ( ) => t . true ( callStack . length === 3 ) )
150- } , 40 )
160+ } , 0 )
151161} )
152162
153163test ( "test action" , async t => {
@@ -167,8 +177,14 @@ test("test action", async t => {
167177}
168178
169179const action = new CustomAction ( )
180+ let once = false
170181
171182dobEvent . on ( "debug" , debugInfo => {
183+ if ( ! once ) {
184+ return
185+ }
186+ once = false
187+
172188delete debugInfo . id
173189t . deepEqual ( debugInfo , {
174190name :"CustomAction.action1" ,
@@ -200,16 +216,23 @@ test("test action", async t => {
200216stopDebug ( )
201217
202218return immediate ( ( ) => t . true ( true ) )
203- } , 60 )
219+ } , 0 )
204220} )
205221
206222test ( "test delete" , async t => {
207223return immediate ( async ( ) => {
208224startDebug ( )
209225
210226const dynamicObj = observable ( { name :"b" } )
227+ let once = true
211228
212229dobEvent . on ( "debug" , debugInfo => {
230+ if ( ! once ) {
231+ return
232+ }
233+ once = false
234+
235+ delete debugInfo . id
213236t . deepEqual ( debugInfo , {
214237name :null ,
215238changeList :[
@@ -228,5 +251,5 @@ test("test delete", async t => {
228251delete dynamicObj . name
229252
230253return immediate ( ( ) => t . true ( true ) )
231- } , 80 )
254+ } , 0 )
232255} )