]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/client_conn_test.go
Simplify user idle check
[rbdr/mobius] / hotline / client_conn_test.go
index 80c22b471edb7abc993d80a203aaf87bfcefc5b8..2176185876a6a4a10f475df754e31a1b27ed6aaa 100644 (file)
@@ -11,9 +11,9 @@ func TestClientConn_handleTransaction(t *testing.T) {
                ID         *[]byte
                Icon       *[]byte
                Flags      *[]byte
-               UserName   *[]byte
+               UserName   []byte
                Account    *Account
-               IdleTime   *int
+               IdleTime   int
                Server     *Server
                Version    *[]byte
                Idle       bool
@@ -39,7 +39,6 @@ func TestClientConn_handleTransaction(t *testing.T) {
                                Flags:      tt.fields.Flags,
                                UserName:   tt.fields.UserName,
                                Account:    tt.fields.Account,
-                               IdleTime:   tt.fields.IdleTime,
                                Server:     tt.fields.Server,
                                Version:    tt.fields.Version,
                                Idle:       tt.fields.Idle,