fixing tests and some subtle issues with saving contents #16
@@ -123,7 +123,7 @@ func (ch *CaddyHugo) Message(deltas ...acedoc.Delta) Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ch *CaddyHugo) handleDeltaConn(conn DeltaConn, doc *editSession) (int, error) {
|
func (ch *CaddyHugo) handleDeltaConn(conn DeltaConn, doc *editSession) (int, error) {
|
||||||
const idlePing = 1 * time.Second
|
const idlePing = 15 * time.Second
|
||||||
const idlePingShort = 1 * time.Millisecond
|
const idlePingShort = 1 * time.Millisecond
|
||||||
|
|
||||||
errCh := make(chan error)
|
errCh := make(chan error)
|
||||||
|
|||||||
@@ -221,7 +221,6 @@ func TestDeltasMulti(t *testing.T) {
|
|||||||
|
|
||||||
for i, client := range clients {
|
for i, client := range clients {
|
||||||
client.mtx.Lock()
|
client.mtx.Lock()
|
||||||
t.Logf("client %d exists", i)
|
|
||||||
// all clients should have "written" 2 deltas out to their "browser"
|
// all clients should have "written" 2 deltas out to their "browser"
|
||||||
// that came from the other clients
|
// that came from the other clients
|
||||||
if len(client.wroteDeltas) != 2 {
|
if len(client.wroteDeltas) != 2 {
|
||||||
|
|||||||
Reference in New Issue
Block a user