mirror of
https://github.com/schollz/croc.git
synced 2025-10-10 21:01:02 +02:00
beter tests
This commit is contained in:
parent
496a6d3a05
commit
675f896d61
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ func TestTCP(t *testing.T) {
|
|||
assert.NotNil(t, err)
|
||||
_, _, _, err = ConnectToTCPServer("localhost:8281", "pass123", keyPublic, "testRoom", 1*time.Nanosecond)
|
||||
assert.NotNil(t, err)
|
||||
_, _, _, err = ConnectToTCPServer("localhost:8281", "pass123", keyPublic+"askldjfklsajdf", "testRoom", 1*time.Nanosecond)
|
||||
_, _, _, err = ConnectToTCPServer("localhost:8281", "pass123", keyPublic+"askldjfklsajdf", "testRoom2")
|
||||
assert.NotNil(t, err)
|
||||
_, _, _, err = ConnectToTCPServer("localhost:8281", "pass125", keyPublic, "testRoom3")
|
||||
assert.NotNil(t, err)
|
||||
|
||||
// try sending data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue