diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 12a93d3..7a8ab47 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,8 +1,9 @@ -name: Endurance Tests +name: Bindings Tests on: - push: - branches: [ "stress_test" ] + workflow_dispatch: + schedule: + - cron: '0 2 * * *' jobs: endurance: diff --git a/.github/workflows/CI_endurance.yml b/.github/workflows/CI_endurance.yml index 0a34b5e..314bc19 100644 --- a/.github/workflows/CI_endurance.yml +++ b/.github/workflows/CI_endurance.yml @@ -1,8 +1,7 @@ name: Endurance Tests on: - push: - branches: [ "stress_test" ] + workflow_dispatch: jobs: endurance1: diff --git a/.github/workflows/Repeated_tests_endurancce.yml b/.github/workflows/Repeated_tests_endurancce.yml index 68be0a8..0e51b4d 100644 --- a/.github/workflows/Repeated_tests_endurancce.yml +++ b/.github/workflows/Repeated_tests_endurancce.yml @@ -1,11 +1,8 @@ name: Repeated Test Suite on: - push: - branches: [ "stress_test" ] - schedule: - - cron: '0 2 * * *' - + workflow_dispatch: + jobs: repeated-tests: runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index 9eba29d..f1241a2 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,5 @@ waku/store.sqlite3 waku/store.sqlite3-shm waku/store.sqlite3-wal + +waku/test_repeated_start_stop.log diff --git a/waku/relay_test.go b/waku/relay_test.go index 6e38730..77c7315 100644 --- a/waku/relay_test.go +++ b/waku/relay_test.go @@ -300,7 +300,7 @@ func TestRelaySubscribeAndPeerCountChange(t *testing.T) { node3Config.Relay = true node3Config.Staticnodes = []string{node1Address[0].String()} - Debug("Creating Node3 with Node2 as a static node") + Debug("Creating Node3 with Node1 as a static node") node3, err := StartWakuNode("Node3", &node3Config) require.NoError(t, err, "Failed to start Node3") diff --git a/waku/stress_test.go b/waku/stress_test.go index 6b9aa11..68faf4d 100644 --- a/waku/stress_test.go +++ b/waku/stress_test.go @@ -73,7 +73,6 @@ func TestStressMemoryUsageForThreeNodes(t *testing.T) { func TestStressStoreQuery5kMessagesWithPagination(t *testing.T) { Debug("Starting test") runtime.GC() - time.Sleep(5 * time.Second) nodeConfig := DefaultWakuConfig nodeConfig.Relay = true nodeConfig.Store = true