]> Cypherpunks.ru repositories - goircd.git/blobdiff - daemon_test.go
Daemon does not need reloading for passwords via HUP
[goircd.git] / daemon_test.go
index ac9bc4cfc3ec5c8ac351db2fe961134b6c98fc31..efdb39fd3e3598dea52a2cd2431bcdadb7a5d8f0 100644 (file)
@@ -1,6 +1,6 @@
 /*
 goircd -- minimalistic simple Internet Relay Chat (IRC) server
-Copyright (C) 2014 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2015 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -15,6 +15,7 @@ GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
+
 package main
 
 import (
@@ -90,6 +91,7 @@ func TestRegistrationWorkflow(t *testing.T) {
 
        conn.inbound <- "AWAY"
        conn.inbound <- "UNEXISTENT CMD"
+       <-conn.outbound
        if r := <-conn.outbound; r != ":foohost 421 meinick UNEXISTENT :Unknown command\r\n" {
                t.Fatal("reply for unexistent command", r)
        }