mirror of https://github.com/schollz/croc.git
fix tests
This commit is contained in:
parent
3941762bf3
commit
21c1efe319
|
@ -15,11 +15,11 @@ import (
|
||||||
func TestCroc(t *testing.T) {
|
func TestCroc(t *testing.T) {
|
||||||
log.SetLevel("trace")
|
log.SetLevel("trace")
|
||||||
defer os.Remove("README.md")
|
defer os.Remove("README.md")
|
||||||
go tcp.Run("debug", "8081", "8082,8083,8084,8085")
|
go tcp.Run("debug", "8081", "pass123", "8082,8083,8084,8085")
|
||||||
go tcp.Run("debug", "8082")
|
go tcp.Run("debug", "8082", "pass123")
|
||||||
go tcp.Run("debug", "8083")
|
go tcp.Run("debug", "8083", "pass123")
|
||||||
go tcp.Run("debug", "8084")
|
go tcp.Run("debug", "8084", "pass123")
|
||||||
go tcp.Run("debug", "8085")
|
go tcp.Run("debug", "8085", "pass123")
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
|
|
||||||
log.Debug("setting up sender")
|
log.Debug("setting up sender")
|
||||||
|
@ -29,6 +29,7 @@ func TestCroc(t *testing.T) {
|
||||||
Debug: true,
|
Debug: true,
|
||||||
RelayAddress: "localhost:8081",
|
RelayAddress: "localhost:8081",
|
||||||
RelayPorts: []string{"8081"},
|
RelayPorts: []string{"8081"},
|
||||||
|
RelayPassword: "pass123",
|
||||||
Stdout: false,
|
Stdout: false,
|
||||||
NoPrompt: true,
|
NoPrompt: true,
|
||||||
DisableLocal: true,
|
DisableLocal: true,
|
||||||
|
@ -43,6 +44,7 @@ func TestCroc(t *testing.T) {
|
||||||
SharedSecret: "test",
|
SharedSecret: "test",
|
||||||
Debug: true,
|
Debug: true,
|
||||||
RelayAddress: "localhost:8081",
|
RelayAddress: "localhost:8081",
|
||||||
|
RelayPassword: "pass123",
|
||||||
Stdout: false,
|
Stdout: false,
|
||||||
NoPrompt: true,
|
NoPrompt: true,
|
||||||
DisableLocal: true,
|
DisableLocal: true,
|
||||||
|
@ -81,6 +83,7 @@ func TestCrocLocal(t *testing.T) {
|
||||||
Debug: true,
|
Debug: true,
|
||||||
RelayAddress: "localhost:8181",
|
RelayAddress: "localhost:8181",
|
||||||
RelayPorts: []string{"8181", "8182"},
|
RelayPorts: []string{"8181", "8182"},
|
||||||
|
RelayPassword: "pass123",
|
||||||
Stdout: true,
|
Stdout: true,
|
||||||
NoPrompt: true,
|
NoPrompt: true,
|
||||||
DisableLocal: false,
|
DisableLocal: false,
|
||||||
|
@ -96,6 +99,7 @@ func TestCrocLocal(t *testing.T) {
|
||||||
SharedSecret: "test",
|
SharedSecret: "test",
|
||||||
Debug: true,
|
Debug: true,
|
||||||
RelayAddress: "localhost:8181",
|
RelayAddress: "localhost:8181",
|
||||||
|
RelayPassword: "pass123",
|
||||||
Stdout: true,
|
Stdout: true,
|
||||||
NoPrompt: true,
|
NoPrompt: true,
|
||||||
DisableLocal: false,
|
DisableLocal: false,
|
||||||
|
@ -147,6 +151,7 @@ func TestCrocError(t *testing.T) {
|
||||||
Debug: true,
|
Debug: true,
|
||||||
RelayAddress: "doesntexistok.com:8381",
|
RelayAddress: "doesntexistok.com:8381",
|
||||||
RelayPorts: []string{"8381", "8382"},
|
RelayPorts: []string{"8381", "8382"},
|
||||||
|
RelayPassword: "pass123",
|
||||||
Stdout: true,
|
Stdout: true,
|
||||||
NoPrompt: true,
|
NoPrompt: true,
|
||||||
DisableLocal: true,
|
DisableLocal: true,
|
||||||
|
|
Loading…
Reference in New Issue