aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)))
}