From 3b0b59813e4141b5f1ed47fcb6107d1749fa995d Mon Sep 17 00:00:00 2001 From: qk-santi <94850169+qk-santi@users.noreply.github.com> Date: Sat, 4 May 2024 18:14:48 +0200 Subject: [PATCH] fix tests --- src/croc/croc_test.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/croc/croc_test.go b/src/croc/croc_test.go index 0a4447d69..445ec5afe 100644 --- a/src/croc/croc_test.go +++ b/src/croc/croc_test.go @@ -18,7 +18,7 @@ import ( func init() { log.SetLevel("trace") - go tcp.Run("debug", "127.0.0.1", "8281", "pass123", "8281,4") + go tcp.Run("debug", "127.0.0.1", "8281", "pass123", "8282,8283,8284,8285") go tcp.Run("debug", "127.0.0.1", "8282", "pass123") go tcp.Run("debug", "127.0.0.1", "8283", "pass123") go tcp.Run("debug", "127.0.0.1", "8284", "pass123") @@ -35,7 +35,7 @@ func TestCrocReadme(t *testing.T) { SharedSecret: "8123-testingthecroc", Debug: true, RelayAddress: "127.0.0.1:8281", - BasePort: 8281, + RelayPorts: []string{"8281"}, RelayPassword: "pass123", Stdout: false, NoPrompt: true, @@ -102,7 +102,7 @@ func TestCrocEmptyFolder(t *testing.T) { SharedSecret: "8123-testingthecroc", Debug: true, RelayAddress: "127.0.0.1:8281", - BasePort: 8281, + RelayPorts: []string{"8281"}, RelayPassword: "pass123", Stdout: false, NoPrompt: true, @@ -169,7 +169,7 @@ func TestCrocSymlink(t *testing.T) { SharedSecret: "8124-testingthecroc", Debug: true, RelayAddress: "127.0.0.1:8281", - BasePort: 8281, + RelayPorts: []string{"8281"}, RelayPassword: "pass123", Stdout: false, NoPrompt: true, @@ -271,8 +271,7 @@ func TestCrocLocal(t *testing.T) { SharedSecret: "8123-testingthecroc", Debug: true, RelayAddress: "127.0.0.1:8181", - BasePort: 8181, - TransferPorts: 1, + RelayPorts: []string{"8181", "8182"}, RelayPassword: "pass123", Stdout: true, NoPrompt: true, @@ -352,8 +351,7 @@ func TestCrocError(t *testing.T) { SharedSecret: "8123-testingthecroc2", Debug: true, RelayAddress: "doesntexistok.com:8381", - BasePort: 8381, - TransferPorts: 1, + RelayPorts: []string{"8381", "8382"}, RelayPassword: "pass123", Stdout: true, NoPrompt: true,