File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ describe('Performance Analysis', () => {
2323 fs . unlinkSync ( 'performanceRecord.txt' ) ;
2424 }
2525 } ) ;
26+ afterEach ( ( ) => {
27+ PerformanceAnalysis . clean ( ) ;
28+ if ( fs . existsSync ( 'performanceRecord.txt' ) ) {
29+ fs . unlinkSync ( 'performanceRecord.txt' ) ;
30+ }
31+ } ) ;
2632 it ( 'should collect performance data' , async ( ) => {
2733 await collect ( 'waitOneSec' ) ;
2834 expect ( PerformanceAnalysis . count ( ) ) . toBeTruthy ( ) ;
@@ -37,6 +43,6 @@ describe('Performance Analysis', () => {
3743 // expect file have two lines
3844 const data = fs . readFileSync ( 'performanceRecord.txt' , 'utf8' ) ;
3945 const lines = data . split ( '\n' ) . filter ( ( line ) => line !== '' ) ;
40- expect ( lines . length ) . toBe ( 4 ) ;
46+ expect ( lines . length ) . toBe ( 6 ) ;
4147 } ) ;
4248} ) ;
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import {
1414 ConfigurationError ,
1515 VulcanError ,
1616 ICacheLayerRefresher ,
17- getAnalysis ,
1817} from '@vulcan-sql/core' ;
1918import { Container , TYPES } from '../containers' ;
2019import { ServeConfig , sslFileOptions } from '../models' ;
@@ -129,7 +128,6 @@ export class VulcanServer {
129128 }
130129 this . cacheRefresher ?. stop ( ) ;
131130 this . container . unload ( ) ;
132- getAnalysis ( ) ;
133131 }
134132
135133 /**
You can’t perform that action at this time.
0 commit comments