From 0cacb6cba480efaa8b4c5e9a54e369059e1840d6 Mon Sep 17 00:00:00 2001 From: tobz Date: Wed, 22 Jan 2014 09:20:57 -0500 Subject: [PATCH] test(store): exercise watchers receiving notifications of non-hidden keys within hidden directories --- store/store_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/store/store_test.go b/store/store_test.go index 33ecffac2..b90a6f411 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -528,6 +528,13 @@ func TestStoreWatchRecursiveCreateWithHiddenKey(t *testing.T) { s.Create("/foo/_bar", false, "baz", false, Permanent) e := nbselect(w.EventChan) assert.Nil(t, e, "") + w, _ = s.Watch("/foo", true, false, 0) + s.Create("/foo/_baz", true, "", false, Permanent) + e = nbselect(w.EventChan) + assert.Nil(t, e, "") + s.Create("/foo/_baz/quux", false, "quux", false, Permanent) + e = nbselect(w.EventChan) + assert.Nil(t, e, "") } // Ensure that the store can watch for key updates.