From bd43f3769bfec4786ee1af6b8591ff651ec00769 Mon Sep 17 00:00:00 2001 From: Chris Rhodes Date: Fri, 15 Feb 2013 18:26:20 -0800 Subject: [PATCH] Fix tests due to more talky init. --- client/connection_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/connection_test.go b/client/connection_test.go index caf1389..e4d09ba 100644 --- a/client/connection_test.go +++ b/client/connection_test.go @@ -33,6 +33,10 @@ func setUp(t *testing.T, start ...bool) (*Conn, *testState) { // Hack to allow tests of send, recv, write etc. // NOTE: the value of the boolean doesn't matter. c.postConnect() + // All connections start with NICK/USER expect these. + nc.Expect("NICK test") + nc.Expect("USER test 12 * :Testing IRC") + // Sleep 1ms to allow background routines to start. <-time.After(1e6) }