mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-21 07:49:41 +08:00
replication master side
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
func TestPublish(t *testing.T) {
|
||||
channel := utils.RandString(5)
|
||||
msg := utils.RandString(5)
|
||||
conn := &connection.FakeConn{}
|
||||
conn := connection.NewFakeConn()
|
||||
Subscribe(testNodeA, conn, utils.ToCmdLine("SUBSCRIBE", channel))
|
||||
conn.Clean() // clean subscribe success
|
||||
Publish(testNodeA, conn, utils.ToCmdLine("PUBLISH", channel, msg))
|
||||
|
Reference in New Issue
Block a user