Commit 85439be5 authored by Aaron Jacobs's avatar Aaron Jacobs

InterruptFSTest.InterruptedDuringRead

parent 0796c46a
...@@ -73,6 +73,7 @@ func (t *InterruptFSTest) StatFoo() { ...@@ -73,6 +73,7 @@ func (t *InterruptFSTest) StatFoo() {
func (t *InterruptFSTest) InterruptedDuringRead() { func (t *InterruptFSTest) InterruptedDuringRead() {
var err error var err error
t.fs.EnableReadBlocking()
// Start a sub-process that attempts to read the file. // Start a sub-process that attempts to read the file.
cmd := exec.Command("cat", path.Join(t.Dir, "foo")) cmd := exec.Command("cat", path.Join(t.Dir, "foo"))
...@@ -92,7 +93,7 @@ func (t *InterruptFSTest) InterruptedDuringRead() { ...@@ -92,7 +93,7 @@ func (t *InterruptFSTest) InterruptedDuringRead() {
}() }()
// Wait for the read to make it to the file system. // Wait for the read to make it to the file system.
t.fs.WaitForReadInFlight() t.fs.WaitForFirstRead()
// The command should be hanging on the read, and not yet have returned. // The command should be hanging on the read, and not yet have returned.
select { select {
......
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