Add perfix to stress_test.go

This commit is contained in:
aya 2025-03-23 13:53:14 +02:00
parent 08694a4905
commit b93b75743a
2 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@ jobs:
- name: Run Endurance Test
run: |
go test -v ./waku/stress_test.go -count=1 -timeout=360m | tee testlogs.log
go test -v ./waku -count=1 -timeout=360m -run '^TestStress' | tee testlogs.log
- name: Upload Test Logs
uses: actions/upload-artifact@v4

View File

@ -19,7 +19,7 @@ import (
"google.golang.org/protobuf/proto"
)
func TestMemoryUsageForThreeNodes(t *testing.T) {
func TestStressMemoryUsageForThreeNodes(t *testing.T) {
logFile, err := os.OpenFile("test_logs.log", os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0666)
require.NoError(t, err)
defer logFile.Close()
@ -90,7 +90,7 @@ func TestMemoryUsageForThreeNodes(t *testing.T) {
Debug("[%s] Test completed successfully", testName)
}
func Test2Nodes500IterationTearDown(t *testing.T) {
func TestStress2Nodes500IterationTearDown(t *testing.T) {
logFile, err := os.OpenFile("test_repeated_start_stop.log", os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0666)
require.NoError(t, err)
defer logFile.Close()
@ -169,7 +169,7 @@ func Test2Nodes500IterationTearDown(t *testing.T) {
require.LessOrEqual(t, finalRSS, initialRSS*3, "OS-level RSS soared above threshold after %d cycles", totalIterations)
}
func TestStoreQuery5kMessagesWithPagination(t *testing.T) {
func TestStressStoreQuery5kMessagesWithPagination(t *testing.T) {
Debug("Starting test")
nodeConfig := DefaultWakuConfig
@ -231,7 +231,7 @@ func TestStoreQuery5kMessagesWithPagination(t *testing.T) {
Debug("[%s] Test completed successfully", t.Name())
}
func TestHighThroughput10kPublish(t *testing.T) {
func TestStressHighThroughput10kPublish(t *testing.T) {
node1Cfg := DefaultWakuConfig
node1Cfg.Relay = true
@ -280,7 +280,7 @@ func TestHighThroughput10kPublish(t *testing.T) {
Debug("Total time per message ~ %v", duration/time.Duration(totalMessages))
}
func TestConnectDisconnect500Iteration(t *testing.T) {
func TestStressConnectDisconnect500Iteration(t *testing.T) {
logFile, err := os.OpenFile("endurance_readings.log", os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0644)
require.NoError(t, err)
defer logFile.Close()