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
38601914
Commit
38601914
authored
Oct 09, 2018
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse/test: testTtl -> testTTL
parent
4e73fb9a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
fuse/test/loopback_test.go
fuse/test/loopback_test.go
+4
-4
fuse/test/mount_test.go
fuse/test/mount_test.go
+2
-2
fuse/test/notify_linux_test.go
fuse/test/notify_linux_test.go
+4
-4
fuse/test/umask_test.go
fuse/test/umask_test.go
+2
-2
No files found.
fuse/test/loopback_test.go
View file @
38601914
...
...
@@ -39,7 +39,7 @@ type testCase struct {
connector
*
nodefs
.
FileSystemConnector
}
const
testT
tl
=
100
*
time
.
Millisecond
const
testT
TL
=
100
*
time
.
Millisecond
// Mkdir is a utility wrapper for os.Mkdir, aborting the test if it fails.
func
(
tc
*
testCase
)
Mkdir
(
name
string
,
mode
os
.
FileMode
)
{
...
...
@@ -92,8 +92,8 @@ func NewTestCase(t *testing.T) *testCase {
ClientInodes
:
true
})
tc
.
connector
=
nodefs
.
NewFileSystemConnector
(
tc
.
pathFs
.
Root
(),
&
nodefs
.
Options
{
EntryTimeout
:
testT
tl
,
AttrTimeout
:
testT
tl
,
EntryTimeout
:
testT
TL
,
AttrTimeout
:
testT
TL
,
NegativeTimeout
:
0.0
,
Debug
:
testutil
.
VerboseTest
(),
LookupKnownChildren
:
true
,
...
...
@@ -947,7 +947,7 @@ func TestLookupKnownChildrenAttrCopied(t *testing.T) {
t
.
Fatalf
(
"WriteFile: %v"
,
err
)
}
mode
:=
fi
.
Mode
()
time
.
Sleep
(
2
*
testT
tl
)
time
.
Sleep
(
2
*
testT
TL
)
if
fi
,
err
=
os
.
Lstat
(
tc
.
mountFile
);
err
!=
nil
{
t
.
Fatalf
(
"Lstat: %v"
,
err
)
...
...
fuse/test/mount_test.go
View file @
38601914
...
...
@@ -124,7 +124,7 @@ func TestRecursiveMount(t *testing.T) {
// We can't avoid a sleep here: the file handle release is not
// synchronized.
t
.
Log
(
"Waiting for kernel to flush file-close to fuse..."
)
time
.
Sleep
(
testT
tl
)
time
.
Sleep
(
testT
TL
)
code
=
ts
.
pathFs
.
Unmount
(
"mnt"
)
if
code
!=
fuse
.
OK
{
...
...
@@ -163,7 +163,7 @@ func TestDeletedUnmount(t *testing.T) {
}
f
.
Close
()
time
.
Sleep
((
3
*
testT
tl
)
/
2
)
time
.
Sleep
((
3
*
testT
TL
)
/
2
)
code
=
ts
.
pathFs
.
Unmount
(
"mnt"
)
if
!
code
.
Ok
()
{
t
.
Error
(
"should succeed"
,
code
)
...
...
fuse/test/notify_linux_test.go
View file @
38601914
...
...
@@ -79,11 +79,11 @@ func NewNotifyTest(t *testing.T) *NotifyTest {
me
:=
&
NotifyTest
{}
me
.
fs
=
newNotifyFs
()
me
.
dir
=
testutil
.
TempDir
()
entryT
tl
:=
100
*
time
.
Millisecond
entryT
TL
:=
100
*
time
.
Millisecond
opts
:=
&
nodefs
.
Options
{
EntryTimeout
:
entryT
tl
,
AttrTimeout
:
entryT
tl
,
NegativeTimeout
:
entryT
tl
,
EntryTimeout
:
entryT
TL
,
AttrTimeout
:
entryT
TL
,
NegativeTimeout
:
entryT
TL
,
Debug
:
testutil
.
VerboseTest
(),
}
...
...
fuse/test/umask_test.go
View file @
38601914
...
...
@@ -50,8 +50,8 @@ func TestUmask(t *testing.T) {
ClientInodes
:
true
})
connector
:=
nodefs
.
NewFileSystemConnector
(
pathFs
.
Root
(),
&
nodefs
.
Options
{
EntryTimeout
:
testT
tl
,
AttrTimeout
:
testT
tl
,
EntryTimeout
:
testT
TL
,
AttrTimeout
:
testT
TL
,
NegativeTimeout
:
0.0
,
Debug
:
testutil
.
VerboseTest
(),
LookupKnownChildren
:
true
,
...
...
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