Skip to content

Commit

Permalink
filesystem: fix tests
Browse files Browse the repository at this point in the history
Use NewServer rather than NewUFS.
  • Loading branch information
jcrussell committed Jun 12, 2018
1 parent 3042477 commit f83af5f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions filesystem/filesystem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func print(f string, args ...interface{}) {
}

func TestNew(t *testing.T) {
n, err := NewUFS()
n, err := NewServer()
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -79,7 +79,11 @@ func TestMount(t *testing.T) {
}
t.Logf("Client is %v", c.String())

n, err := NewUFS(func(s *protocol.Server) error {
fs, err := NewServer()
if err != nil {
t.Fatal(err)
}
n, err := protocol.NewServer(fs, func(s *protocol.Server) error {
s.Trace = print //t.Logf
return nil
})
Expand Down

0 comments on commit f83af5f

Please sign in to comment.