Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-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
Kirill Smelkov
jacobsa-fuse
Commits
0fe8ed14
Commit
0fe8ed14
authored
Mar 17, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed AttributeCachingTest.StatMtimeStat.
parent
9ca89ca2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
samples/cachingfs/caching_fs_test.go
samples/cachingfs/caching_fs_test.go
+3
-11
No files found.
samples/cachingfs/caching_fs_test.go
View file @
0fe8ed14
...
...
@@ -418,20 +418,12 @@ func (t *AttributeCachingTest) StatRenumberStat() {
func
(
t
*
AttributeCachingTest
)
StatMtimeStat
()
{
newMtime
:=
t
.
initialMtime
.
Add
(
time
.
Second
)
fooBefore
,
dirBefore
,
barBefore
:=
t
.
statAll
()
t
.
statAll
()
t
.
fs
.
SetMtime
(
newMtime
)
fooAfter
,
dirAfter
,
barAfter
:=
t
.
statAll
()
// We should still see the old attributes.
ExpectThat
(
fooAfter
.
ModTime
(),
timeutil
.
TimeEq
(
fooBefore
.
ModTime
()))
ExpectThat
(
dirAfter
.
ModTime
(),
timeutil
.
TimeEq
(
dirBefore
.
ModTime
()))
ExpectThat
(
barAfter
.
ModTime
(),
timeutil
.
TimeEq
(
barBefore
.
ModTime
()))
// But after waiting for the attribute cache to expire, we should see the new
// attributes.
time
.
Sleep
(
2
*
t
.
getattrTimeout
)
fooAfter
,
dirAfter
,
barAfter
=
t
.
statAll
()
// We should see the new attributes, since the entry had to be looked up
// again and the new attributes were returned with the entry.
ExpectThat
(
fooAfter
.
ModTime
(),
timeutil
.
TimeEq
(
newMtime
))
ExpectThat
(
dirAfter
.
ModTime
(),
timeutil
.
TimeEq
(
newMtime
))
ExpectThat
(
barAfter
.
ModTime
(),
timeutil
.
TimeEq
(
newMtime
))
...
...
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