@@ -18,7 +18,11 @@ import { getWorkflowZodSchema } from './schema';
1818
1919const threesholdInPersents = 1.2 ; // +20% to allow for minor runtime variance
2020
21- describe ( 'internal connectors memory tests' , ( ) => {
21+ /**
22+ * Skipping this test as it's flaky.
23+ * TODO: Revisit it later
24+ */
25+ describe . skip ( 'internal connectors memory tests' , ( ) => {
2226 const forceGC = ( ) => {
2327 if ( global . gc ) {
2428 global . gc ( ) ;
@@ -33,7 +37,7 @@ describe('internal connectors memory tests', () => {
3337 ) ;
3438
3539 describe ( 'getElasticsearchConnectors memory usage' , ( ) => {
36- it ( 'should be less than 1 MB ' , ( ) => {
40+ it ( 'should have reasonable memory usage ' , ( ) => {
3741 const retainer = [ ] ;
3842 const before = getHeapMB ( ) ;
3943 retainer . push ( getElasticsearchConnectors ( ) ) ;
@@ -45,7 +49,7 @@ describe('internal connectors memory tests', () => {
4549 } ) ;
4650
4751 describe ( 'getKibanaConnectors memory usage' , ( ) => {
48- it ( 'should be less than 1 MB ' , ( ) => {
52+ it ( 'should have reasonable memory usage ' , ( ) => {
4953 const retainer = [ ] ;
5054 const before = getHeapMB ( ) ;
5155 retainer . push ( getKibanaConnectors ( ) ) ;
@@ -57,7 +61,7 @@ describe('internal connectors memory tests', () => {
5761 } ) ;
5862
5963 describe ( 'getWorkflowZodSchema memory usage' , ( ) => {
60- it ( 'should be less than 10 MB ' , ( ) => {
64+ it ( 'should have reasonable memory usage ' , ( ) => {
6165 const retainer = [ ] ;
6266 const before = getHeapMB ( ) ;
6367 retainer . push ( getWorkflowZodSchema ( { } ) ) ;
@@ -69,7 +73,7 @@ describe('internal connectors memory tests', () => {
6973 } ) ;
7074
7175 describe ( 'parseWorkflowYamlToJSON memory usage' , ( ) => {
72- it ( 'should be less than 10 MB ' , ( ) => {
76+ it ( 'should have reasonable memory usage ' , ( ) => {
7377 const retainer = [ ] ;
7478 const before = getHeapMB ( ) ;
7579 const schema = getWorkflowZodSchema ( { } ) ;
0 commit comments