1 // Copyright (c) 2014-2015 The Notify Authors. All rights reserved.
2 // Use of this source code is governed by the MIT license that can be
3 // found in the LICENSE file.
11 func TestNotifySystemAndGlobalMix(t *testing.T) {
12 n := NewNotifyTest(t, "testdata/vfs.txt")
17 n.Watch("src/github.com/rjeczalik/fs", ch[0], Create)
18 n.Watch("src/github.com/rjeczalik/fs", ch[1], InCreate)
22 Event: icreate(n.W(), "src/github.com/rjeczalik/fs/.main.cc.swr"),
23 Receiver: Chans{ch[0], ch[1]},
27 n.ExpectNotifyEvents(cases, ch)
30 func TestUnknownEvent(t *testing.T) {
31 n := NewNotifyTest(t, "testdata/vfs.txt")
36 n.WatchErr("src/github.com/rjeczalik/fs", ch[0], nil, inExclUnlink)