X-Git-Url: http://git.scottworley.com/reliable-chat/blobdiff_plain/cc9bd37043c30f835fb38ac022ca6e65e5724925..fa5e7c1bccdf5c1ca1b05e0ef1f0e0478540ab51:/server/server_test.go?ds=inline diff --git a/server/server_test.go b/server/server_test.go index 0afb384..d1babab 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -8,9 +8,9 @@ func TestMessageInsertAndRetreive(t *testing.T) { at := time.Now() var zero_time time.Time store := start_store() - store.Add <- Message{at, say} + store.Add <- &Message{at, say} messages_from_store := make(chan []Message, 1) - store.Get <- StoreRequest{zero_time, messages_from_store} + store.Get <- &StoreRequest{zero_time, messages_from_store} messages := <-messages_from_store if len(messages) != 1 { t.Fail()