Increase limit to stress tests

This commit is contained in:
aya 2025-05-14 15:47:52 +03:00
parent d8e7fb1d95
commit b6121264e4

View File

@ -92,7 +92,7 @@ func TestStressStoreQuery5kMessagesWithPagination(t *testing.T) {
}() }()
var memStats runtime.MemStats var memStats runtime.MemStats
iterations := 500 iterations := 2000
runtime.ReadMemStats(&memStats) runtime.ReadMemStats(&memStats)
initialHeapAlloc := memStats.HeapAlloc initialHeapAlloc := memStats.HeapAlloc
@ -157,7 +157,7 @@ func TestStressHighThroughput10kPublish(t *testing.T) {
Debug("Memory usage BEFORE sending => HeapAlloc: %d KB, RSS: %d KB", startHeapKB, startRSSKB) Debug("Memory usage BEFORE sending => HeapAlloc: %d KB, RSS: %d KB", startHeapKB, startRSSKB)
totalMessages := 3000 totalMessages := 6000
pubsubTopic := DefaultPubsubTopic pubsubTopic := DefaultPubsubTopic
for i := 0; i < totalMessages; i++ { for i := 0; i < totalMessages; i++ {
@ -199,7 +199,7 @@ func TestStressConnectDisconnect500Iteration(t *testing.T) {
node1.StopAndDestroy() node1.StopAndDestroy()
}() }()
iterations := 200 iterations := 1000
for i := 1; i <= iterations; i++ { for i := 1; i <= iterations; i++ {
err := node0.ConnectPeer(node1) err := node0.ConnectPeer(node1)
require.NoError(t, err, "Iteration %d: node0 failed to connect to node1", i) require.NoError(t, err, "Iteration %d: node0 failed to connect to node1", i)
@ -347,7 +347,7 @@ func TestStressLargePayloadEphemeralMessagesEndurance(t *testing.T) {
require.NoError(t, err) require.NoError(t, err)
Debug("Before endurance test: HeapAlloc = %d KB, RSS = %d KB", startHeapKB, startRSSKB) Debug("Before endurance test: HeapAlloc = %d KB, RSS = %d KB", startHeapKB, startRSSKB)
maxIterations := 3000 maxIterations := 5000
payloadSize := 100 * 1024 payloadSize := 100 * 1024
largePayload := make([]byte, payloadSize) largePayload := make([]byte, payloadSize)
for i := range largePayload { for i := range largePayload {
@ -391,7 +391,7 @@ func TestStress2Nodes500IterationTearDown(t *testing.T) {
require.NoError(t, err) require.NoError(t, err)
Debug("[%s] OS-level RSS at test START: %d KB", t.Name(), initialRSS) Debug("[%s] OS-level RSS at test START: %d KB", t.Name(), initialRSS)
totalIterations := 500 totalIterations := 2000
for i := 1; i <= totalIterations; i++ { for i := 1; i <= totalIterations; i++ {
var nodes []*WakuNode var nodes []*WakuNode
for n := 1; n <= 2; n++ { for n := 1; n <= 2; n++ {