File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
test/configCases/plugins/profiling-plugin Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -5,25 +5,15 @@ it("should generate a events.json file", (done) => {
55 path = require ( "path" ) ,
66 os = require ( "os" ) ;
77
8- // HACK: we need this timeout on the CI only,
9- // because the filesystem is less responsive
10- setTimeout ( ( ) => {
11- expect ( fs . existsSync ( path . join ( __dirname , "events.json" ) ) ) . toBe ( true ) ;
12- done ( ) ;
13- } , 500 )
8+ expect ( fs . existsSync ( path . join ( __dirname , "events.json" ) ) ) . toBe ( true ) ;
149} ) ;
1510
1611it ( "should have proper setup record inside of the json stream" , ( done ) => {
1712 var fs = require ( "fs" ) ,
1813 path = require ( "path" ) ,
1914 os = require ( "os" ) ;
2015
21- // HACK: we need this timeout on the CI only,
22- // because the filesystem is less responsive
23- setTimeout ( ( ) => {
24- // convert json stream to valid
25- var source = JSON . parse ( fs . readFileSync ( path . join ( __dirname , "events.json" ) , "utf-8" ) . toString ( ) + "{}]" ) ;
26- expect ( source [ 0 ] . id ) . toEqual ( 1 ) ;
27- done ( ) ;
28- } , 500 )
16+ // convert json stream to valid
17+ var source = JSON . parse ( fs . readFileSync ( path . join ( __dirname , "events.json" ) , "utf-8" ) . toString ( ) + "{}]" ) ;
18+ expect ( source [ 0 ] . id ) . toEqual ( 1 ) ;
2919} ) ;
You can’t perform that action at this time.
0 commit comments