Skip to content

Commit ae4f250

Browse files
committed
Modify test assertion
1 parent 43b8c43 commit ae4f250

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Run Endurance Test
4141
run: |
4242
# Increase timeout so long-running tests won't kill the job prematurely
43-
go test -v ./waku -count=1 -timeout=300m -run Test2Nodes1kTearDown ./... | tee testlogs.log
43+
go test -v ./waku -count=1 -timeout=300m -run Test2Nodes500IterationTearDown ./... | tee testlogs.log
4444
4545
- name: Upload Test Logs
4646
uses: actions/upload-artifact@v4

waku/stress_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func TestMemoryUsageForThreeNodes(t *testing.T) {
7979
Debug("[%s] Test completed successfully", testName)
8080
}
8181

82-
func Test2Nodes1kTearDown(t *testing.T) {
82+
func Test2Nodes500IterationTearDown(t *testing.T) {
8383
logFile, err := os.OpenFile("test_repeated_start_stop.log", os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0666)
8484
require.NoError(t, err)
8585
defer logFile.Close()
@@ -98,7 +98,7 @@ func Test2Nodes1kTearDown(t *testing.T) {
9898
require.NoError(t, err)
9999
Debug("[%s] OS-level RSS at test START: %d KB", t.Name(), initialRSS)
100100

101-
totalIterations := 501
101+
totalIterations := 500
102102
for i := 1; i <= totalIterations; i++ {
103103
var nodes []*WakuNode
104104
for n := 1; n <= 2; n++ {
@@ -134,7 +134,7 @@ func Test2Nodes1kTearDown(t *testing.T) {
134134
rssNow, err := getRSSKB()
135135
require.NoError(t, err)
136136
Debug("Iteration %d, OS-level RSS after teardown: %d KB", i, rssNow)
137-
require.LessOrEqual(t, rssNow, initialRSS*3, "OS-level RSS soared above threshold after iteration %d", i)
137+
require.LessOrEqual(t, rssNow, initialRSS*10, "OS-level RSS soared above threshold after iteration %d", i)
138138
}
139139
Debug("Iteration numberrrrrr %d", i)
140140
}

0 commit comments

Comments
 (0)