Commit e8f397ba authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix thinkos in tests.

parent 7b832016
...@@ -169,8 +169,8 @@ func BenchmarkGoFuseThreadedStat(b *testing.B) { ...@@ -169,8 +169,8 @@ func BenchmarkGoFuseThreadedStat(b *testing.B) {
ttl := 100 * time.Millisecond ttl := 100 * time.Millisecond
opts := fuse.FileSystemOptions{ opts := fuse.FileSystemOptions{
EntryTimeout: ttl.Seconds(), EntryTimeout: ttl,
AttrTimeout: ttl.Seconds(), AttrTimeout: ttl,
NegativeTimeout: 0.0, NegativeTimeout: 0.0,
} }
wd, clean := setupFs(fs, &opts) wd, clean := setupFs(fs, &opts)
......
...@@ -10,6 +10,7 @@ import ( ...@@ -10,6 +10,7 @@ import (
"log" "log"
"os" "os"
"runtime" "runtime"
"time"
) )
var _ = runtime.GOMAXPROCS var _ = runtime.GOMAXPROCS
......
...@@ -6,12 +6,13 @@ import ( ...@@ -6,12 +6,13 @@ import (
"log" "log"
"os" "os"
"testing" "testing"
"time"
) )
var _ = log.Printf var _ = log.Printf
var CheckSuccess = fuse.CheckSuccess var CheckSuccess = fuse.CheckSuccess
const testTtl = 0.1 const testTtl = 100 * time.Millisecond
func setupMzfs() (mountPoint string, cleanup func()) { func setupMzfs() (mountPoint string, cleanup func()) {
fs := NewMultiZipFs() fs := NewMultiZipFs()
......
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