Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
cluster_test: add sync
Browse files Browse the repository at this point in the history
  • Loading branch information
pmazzini committed Jun 2, 2020
1 parent b305845 commit 269cbca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ func TestBasicCluster(t *testing.T) {
t.Fatalf("Create failed on node 1: %+v", err)
}

if _, err := zk2.Sync("/gozk-test"); err != nil {
t.Fatalf("Sync failed on node 2: %+v", err)
}

if by, _, err := zk2.Get("/gozk-test"); err != nil {
t.Fatalf("Get failed on node 2: %+v", err)
} else if string(by) != "foo-cluster" {
Expand Down

0 comments on commit 269cbca

Please sign in to comment.