Commit 7e3cd3eb authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Run gofmt again.

parent 2c39d5b4
...@@ -431,7 +431,7 @@ func TestWriteAccess(t *testing.T) { ...@@ -431,7 +431,7 @@ func TestWriteAccess(t *testing.T) {
err := ioutil.WriteFile(fn, []byte("foo"), 0444) err := ioutil.WriteFile(fn, []byte("foo"), 0444)
CheckSuccess(err) CheckSuccess(err)
errno := syscall.Access(wd + "/mount/file", fuse.W_OK) errno := syscall.Access(wd+"/mount/file", fuse.W_OK)
if errno != 0 { if errno != 0 {
err = os.Errno(errno) err = os.Errno(errno)
CheckSuccess(err) CheckSuccess(err)
......
package zipfs package zipfs
import ( import (
...@@ -11,12 +10,12 @@ func setupZipfs() (mountPoint string, cleanup func()) { ...@@ -11,12 +10,12 @@ func setupZipfs() (mountPoint string, cleanup func()) {
wd, err := os.Getwd() wd, err := os.Getwd()
CheckSuccess(err) CheckSuccess(err)
zfs, err := NewArchiveFileSystem(wd + "/test.zip") zfs, err := NewArchiveFileSystem(wd + "/test.zip")
CheckSuccess(err) CheckSuccess(err)
mountPoint = fuse.MakeTempDir() mountPoint = fuse.MakeTempDir()
state, _, err := fuse.MountFileSystem(mountPoint, zfs, nil) state, _, err := fuse.MountFileSystem(mountPoint, zfs, nil)
state.Debug = true state.Debug = true
go state.Loop(false) go state.Loop(false)
...@@ -74,8 +73,7 @@ func TestLinkCount(t *testing.T) { ...@@ -74,8 +73,7 @@ func TestLinkCount(t *testing.T) {
fi, err := os.Stat(mp + "/file.txt") fi, err := os.Stat(mp + "/file.txt")
CheckSuccess(err) CheckSuccess(err)
if fi.Nlink != 1 { if fi.Nlink != 1 {
t.Fatal("wrong link count", fi.Nlink) t.Fatal("wrong link count", fi.Nlink)
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment