Skip to content

Commit

Permalink
Merge pull request #1 from apache/master
Browse files Browse the repository at this point in the history
pull code
  • Loading branch information
pantianying committed Jul 4, 2019
2 parents 1178d9a + a4078d1 commit 22498ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions remoting/zookeeper/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package zookeeper

import (
"fmt"
"testing"
"time"
)
Expand All @@ -27,6 +26,7 @@ import (
"github.com/stretchr/testify/assert"
)
import (
"github.com/apache/dubbo-go/common/logger"
"github.com/apache/dubbo-go/remoting"
)

Expand Down Expand Up @@ -108,10 +108,10 @@ type mockDataListener struct {
}

func (m *mockDataListener) DataChange(eventType remoting.Event) bool {
fmt.Println(eventType)
logger.Info(eventType)
m.eventList = append(m.eventList, eventType)
if eventType.Content == m.changedData {
m.client.Wait.Done()
m.client.Close()
}
return true
}

0 comments on commit 22498ac

Please sign in to comment.