mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-08 01:20:40 +00:00
fuse(4): fix the entry_cache_negative_timeout test
I committed too soon in r344775; the test actually passes when I write it correctly. PR: 236226 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
56f07a9855
commit
2343311052
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/fuse2/; revision=344783
|
@ -225,8 +225,7 @@ TEST_F(Lookup, DISABLED_entry_cache_negative)
|
|||
}
|
||||
|
||||
/* Negative entry caches should timeout, too */
|
||||
/* https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236226 */
|
||||
TEST_F(Lookup, DISABLED_entry_cache_negative_timeout)
|
||||
TEST_F(Lookup, entry_cache_negative_timeout)
|
||||
{
|
||||
/*
|
||||
* The timeout should be longer than the longest plausible time the
|
||||
|
@ -239,8 +238,8 @@ TEST_F(Lookup, DISABLED_entry_cache_negative_timeout)
|
|||
return (in->header.opcode == FUSE_LOOKUP);
|
||||
}, Eq(true)),
|
||||
_)
|
||||
).Times(1)
|
||||
.WillOnce(Invoke([=](auto in, auto out) {
|
||||
).Times(2)
|
||||
.WillRepeatedly(Invoke([=](auto in, auto out) {
|
||||
out->header.unique = in->header.unique;
|
||||
out->header.error = 0;
|
||||
out->body.entry.nodeid = 0;
|
||||
|
|
Loading…
Reference in a new issue