Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Levin Zimmermann
go-fuse
Commits
89fa0af3
Commit
89fa0af3
authored
May 25, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use smaller TTL for zip unmount test.
parent
ef250cda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
zipfs/multizip_test.go
zipfs/multizip_test.go
+8
-2
No files found.
zipfs/multizip_test.go
View file @
89fa0af3
...
...
@@ -11,6 +11,8 @@ import (
var
_
=
log
.
Printf
var
CheckSuccess
=
fuse
.
CheckSuccess
const
testTtl
=
0.1
func
TestMultiZipFs
(
t
*
testing
.
T
)
{
var
err
os
.
Error
...
...
@@ -19,7 +21,11 @@ func TestMultiZipFs(t *testing.T) {
fs
:=
NewMultiZipFs
()
mountPoint
:=
fuse
.
MakeTempDir
()
state
,
_
,
err
:=
fuse
.
MountFileSystem
(
mountPoint
,
fs
,
nil
)
state
,
_
,
err
:=
fuse
.
MountFileSystem
(
mountPoint
,
fs
,
&
fuse
.
FileSystemOptions
{
EntryTimeout
:
testTtl
,
AttrTimeout
:
testTtl
,
NegativeTimeout
:
0.0
,
})
defer
os
.
RemoveAll
(
mountPoint
)
CheckSuccess
(
err
)
defer
state
.
Unmount
()
...
...
@@ -88,7 +94,7 @@ func TestMultiZipFs(t *testing.T) {
// This is ugly but necessary: We don't have ways to signal
// back to FUSE that the file disappeared.
time
.
Sleep
(
1.5e9
)
time
.
Sleep
(
1.5e9
*
testTtl
)
fi
,
err
=
os
.
Stat
(
mountPoint
+
"/zipmount"
)
if
err
==
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment