Skip to content

Commit

Permalink
Discovery test (#3)
Browse files Browse the repository at this point in the history
* Add p2p discover test

* Fix discovery test

* Clean up tests

* Use go's benchmarking for perf tests

* dsf

* Make perf test framework

* use external target node for pipeline run

---------
  • Loading branch information
wojciechos authored Sep 10, 2024
1 parent b60e4cf commit e43fb17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,15 @@ jobs:
- name: Install dependencies
run: go mod download

- name: Set TARGET_PEER_ADDRESS environment variable
run: echo "TARGET_PEER_ADDRESS=/ip4/127.0.0.1/tcp/7777/p2p/12D3KooWLBUjEPyTiACzQZ3K1oqBXRqHwRFvAUHrm561pWWbJkYf" >> $GITHUB_ENV

- name: Run performance tests
run: go test -v -timeout 5m ./tests/performance
env:
TARGET_PEER_ADDRESS: ${{ env.TARGET_PEER_ADDRESS }}

- name: Run conformance tests
run: go test -v ./tests/conformance
run: go test -v ./tests/conformance
env:
TARGET_PEER_ADDRESS: ${{ env.TARGET_PEER_ADDRESS }}
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
func init() {
//TargetPeerAddress = getEnv("TARGET_PEER_ADDRESS", "/ip4/35.237.66.77/tcp/7777/p2p/12D3KooWR8ikUDiinyE5wgdYiqsdLfJRsBDYKGii6L3oyoipVEaV")
TargetPeerAddress = getEnv("TARGET_PEER_ADDRESS", "/ip4/127.0.0.1/tcp/7777/p2p/12D3KooWLBUjEPyTiACzQZ3K1oqBXRqHwRFvAUHrm561pWWbJkYf")
timeoutStr := getEnv("DEFAULT_TEST_TIMEOUT", "3000s")
timeoutStr := getEnv("DEFAULT_TEST_TIMEOUT", "300s")
var err error
DefaultTestTimeout, err = time.ParseDuration(timeoutStr)
if err != nil {
Expand Down

0 comments on commit e43fb17

Please sign in to comment.