]> git.scottworley.com Git - reliable-chat/blobdiff - server/server_test.go
Shut down the message store after each test
[reliable-chat] / server / server_test.go
index d1bababe56686e455d876bf16985f763e0743dd4..9fabf81995cea230431b5a22ea2b5655b3a4d5eb 100644 (file)
@@ -21,4 +21,6 @@ func TestMessageInsertAndRetreive(t *testing.T) {
        if messages[0].Text != say {
                t.Fail()
        }
+       close(store.Get)
+       close(store.Add)
 }