OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / rjeczalik / notify / watcher_trigger_test.go
1 // Copyright (c) 2014-2017 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.
4
5 // +build darwin,kqueue dragonfly freebsd netbsd openbsd solaris
6
7 package notify
8
9 import "testing"
10
11 func TestWatcherCreateOnly(t *testing.T) {
12         w := NewWatcherTest(t, "testdata/vfs.txt", Create)
13         defer w.Close()
14
15         cases := [...]WCase{
16                 create(w, "dir/"),
17                 create(w, "dir2/"),
18         }
19
20         w.ExpectAny(cases[:])
21 }