Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony committed Dec 30, 2018
1 parent 3109085 commit de5783b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/logic/logic-example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
[node]
defaultDomain = "conn.goim.io"
hostDomain = ".goim.io"
heartbeat = "30s"
eartbeatMax = 3
heartbeat = "1m"
heartbeatMax = 2
tcpPort = 3101
wsPort = 3102
wssPort = 3103
Expand Down
4 changes: 2 additions & 2 deletions internal/logic/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/Terry-Mao/goim/api/comet/grpc"
"github.com/issue9/assert"
"github.com/stretchr/testify/assert"
)

func TestConnect(t *testing.T) {
Expand All @@ -23,7 +23,7 @@ func TestConnect(t *testing.T) {
assert.Equal(t, serverKey, key)
assert.Equal(t, roomID, "test://test_room")
assert.Equal(t, len(accepts), 3)
assert.NotEqual(t, hb, 0)
assert.NotZero(t, hb)
t.Log(mid, key, roomID, accepts, err)
// heartbeat
err = lg.Heartbeat(c, mid, key, server)
Expand Down

0 comments on commit de5783b

Please sign in to comment.