aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-11 19:35:37 -0400
committerDeterminant <[email protected]>2019-06-11 19:35:37 -0400
commit372e0db5420bbb0ff99d0f052d8a4b291d59036b (patch)
treecf568a249ce68c0cc4b2df5b2c226746e45049f1
parent1371ede9aad86dce624f4486b5d7831aa6de5a70 (diff)
minor
-rw-r--r--Makefile3
-rw-r--r--test_p2p_stress/main.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fd1399b..8a83718 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
.PHONY: all clean
-all: build/test_msgnet
+all: build/test_msgnet build/test_p2p_stress
salticidae/libsalticidae.so:
cd salticidae/; cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED=ON -DSALTICIDAE_DEBUG_LOG=OFF -DSALTICIDAE_CBINDINGS=ON -DBUILD_TEST=OFF ./
@@ -11,4 +11,5 @@ build:
build/test_msgnet: salticidae/libsalticidae.so
go build -o $@ salticidae-go/test_msgnet
+build/test_p2p_stress: salticidae/libsalticidae.so
go build -o $@ salticidae-go/test_p2p_stress
diff --git a/test_p2p_stress/main.go b/test_p2p_stress/main.go
index baa2a58..ed671fc 100644
--- a/test_p2p_stress/main.go
+++ b/test_p2p_stress/main.go
@@ -251,7 +251,7 @@ func main() {
ec = salticidae.NewEventContext()
var addrs []salticidae.NetAddr
- for i := 0; i < 4; i++ {
+ for i := 0; i < 5; i++ {
addrs = append(addrs,
salticidae.NewAddrFromIPPortString("127.0.0.1:" + strconv.Itoa(12345 + i)))
}