]> git.scottworley.com Git - reliable-chat/blobdiff - server/server_test.go
gofmt
[reliable-chat] / server / server_test.go
index fb20ddc4070459b5bf9668a8b1ae2ac164c5af42..5031c898a25f1d81359e7cb81c20c9b2e33fefef 100644 (file)
@@ -1,3 +1,20 @@
+/*  reliable-chat - multipath chat
+ *  Copyright (C) 2012  Scott Worley <sworley@chkno.net>
+ *
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU Affero General Public License as
+ *  published by the Free Software Foundation, either version 3 of the
+ *  License, or (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Affero General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Affero General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
 package main
 
 import "testing"
@@ -75,7 +92,7 @@ func TestMultipleListeners(t *testing.T) {
                if len(messages) != 1 {
                        t.FailNow()
                }
-               expectMessage(t,messages[0], at, id, say)
+               expectMessage(t, &messages[0], at, id, say)
        }
        close(store.Get)
        close(store.Add)