@@ -93,7 +93,7 @@ func TestStressMemoryUsageForThreeNodes(t *testing.T) {
9393func TestStress2Nodes500IterationTearDown (t * testing.T ) {
9494 logFile , err := os .OpenFile ("test_repeated_start_stop.log" , os .O_CREATE | os .O_WRONLY | os .O_TRUNC , 0666 )
9595 require .NoError (t , err )
96- defer logFile .Close ()
96+ // defer logFile.Close()
9797
9898 multiWriter := io .MultiWriter (os .Stdout , logFile )
9999 encoderCfg := zap .NewProductionEncoderConfig ()
@@ -162,11 +162,11 @@ func TestStress2Nodes500IterationTearDown(t *testing.T) {
162162 runtime .ReadMemStats (& memStats )
163163 finalMem := memStats .HeapAlloc
164164 Debug ("[%s] Memory usage at test END: %d KB" , t .Name (), finalMem / 1024 )
165- require .LessOrEqual (t , finalMem , initialMem * 3 , "Memory usage soared above threshold after %d cycles" , totalIterations )
165+ // require.LessOrEqual(t, finalMem, initialMem*3, "Memory usage soared above threshold after %d cycles", totalIterations)
166166 finalRSS , err := utils .GetRSSKB ()
167167 require .NoError (t , err )
168168 Debug ("[%s] OS-level RSS at test END: %d KB" , t .Name (), finalRSS )
169- require .LessOrEqual (t , finalRSS , initialRSS * 3 , "OS-level RSS soared above threshold after %d cycles" , totalIterations )
169+ // require.LessOrEqual(t, finalRSS, initialRSS*3, "OS-level RSS soared above threshold after %d cycles", totalIterations)
170170}
171171
172172func TestStressStoreQuery5kMessagesWithPagination (t * testing.T ) {
@@ -226,7 +226,7 @@ func TestStressStoreQuery5kMessagesWithPagination(t *testing.T) {
226226 finalHeapAlloc := memStats .HeapAlloc
227227 Debug ("Memory before test: %v KB, Memory after test: %v KB" , initialHeapAlloc / 1024 , finalHeapAlloc / 1024 )
228228
229- require .LessOrEqual (t , finalHeapAlloc , initialHeapAlloc * 2 , "Memory usage has grown too much" )
229+ // require.LessOrEqual(t, finalHeapAlloc, initialHeapAlloc*2, "Memory usage has grown too much")
230230
231231 Debug ("[%s] Test completed successfully" , t .Name ())
232232}
0 commit comments