-func NewTestingConn(msgs ...string) *TestingConn {
- msgs_crlf := []string{}
- for _, msg := range msgs {
- msgs_crlf = append(msgs_crlf, msg+"\r\n")
- }
- return &TestingConn{msgs: msgs_crlf, msg_ptr: -1}
+func NewTestingConn() *TestingConn {
+ inbound := make(chan string, 8)
+ outbound := make(chan string, 8)
+ return &TestingConn{inbound: inbound, outbound: outbound}