Skip to content

Commit

Permalink
(wip) #6
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeczalik committed Feb 8, 2015
1 parent 2033039 commit 74102cb
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions recursivetree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,33 @@ func TestRecursiveTree(t *testing.T) {
}

n.ExpectTreeEvents(events[:], ch)

stops := [...]RCase{
{
Call: Call{
F: FuncStop,
C: ch[1],
},
Record: []Call{
{
F: FuncRecursiveRewatch,
P: "src/github.com/rjeczalik/fs",
NP: "src/github.com/rjeczalik/fs",
E: Create | Delete | Move,
NE: Create | Move,
},
},
},
}

ch.Debug()

_ = stops

// n.ExpectRecordedCalls(stops[:])
}

func TestRecursiveTreeWatch_InactiveMerge(t *testing.T) {
func TestRecursiveTreeWatchInactiveMerge(t *testing.T) {
n := NewRecursiveTreeTest(t, "testdata/vfs.txt")
defer n.Close()

Expand Down Expand Up @@ -429,27 +453,4 @@ func TestRecursiveTreeWatch_InactiveMerge(t *testing.T) {
}

n.ExpectTreeEvents(events[:], ch)

stops := [...]RCase{
{
Call: Call{
F: FuncStop,
C: ch[1],
},
Record: []Call{
{
F: FuncRecursiveRewatch,
P: "src/github.com/rjeczalik/fs",
NP: "src/github.com/rjeczalik/fs",
E: Create | Delete | Move,
NE: Create | Move,
},
},
},
}

ch.Debug()

_ = stops
// n.ExpectRecordedCalls(stops[:])
}

0 comments on commit 74102cb

Please sign in to comment.