mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-10 00:29:01 +02:00
fix test event
This commit is contained in:
parent
4b11f44419
commit
9155dbfe6b
@ -28,13 +28,13 @@ func TestZookeeper(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
res := zk.Build(_testAppid)
|
||||
event := res.Watch()
|
||||
_, err = zk.Register(context.TODO(), _testIns)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
<-event
|
||||
// fetch&watch
|
||||
res := zk.Build(_testAppid)
|
||||
event := res.Watch()
|
||||
<-event
|
||||
in, ok := res.Fetch(context.TODO())
|
||||
if !ok {
|
||||
|
Loading…
Reference in New Issue
Block a user