test(store): exercise watchers receiving notifications of non-hidden keys within hidden directories

This commit is contained in:
tobz 2014-01-22 09:20:57 -05:00
parent 7a948746a8
commit 0cacb6cba4

View File

@ -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.