-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain_test.go
29 lines (25 loc) · 1.01 KB
/
main_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package integration
import (
"net"
"testing"
)
// network connections used by various tests
var charConn net.Conn
// Validate all Client to Login Server commands with a clear and concise
// flow control for dependency management.
func TestClientToLogin(t *testing.T) {
t.Logf("Sending mock Login requests with username %s against login server at %s\n", username, *loginAddress)
if !t.Run("CreateAccount", ClientToLoginCreateAccount) {
} else if !t.Run("RequestAccess", ClientToLoginRequestAccess) {
} else if !t.Run("RequestAccessCommandLatency", ClientToLoginRequestAccessCommandLatency) {
} else if !t.Run("RequestAccessMessageLatency", ClientToLoginRequestAccessMessageLatency) {
}
}
// Validate all Char to Login server commands with a clear and
// concise flow control for dependency management.
func TestCharToLogin(t *testing.T) {
t.Logf("Sending mock world requests with credentials (%s) to login server at %s", *charCredentials, *loginAddress)
if !t.Run("RequestAccess", CharToLoginRequestAccess) {
return
}
}