From 2665bd1342d4a99c36f250fc5e04ec4dc85c6ad9 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 24 Mar 2015 08:52:56 +1100 Subject: [PATCH] Other SetUp methods. --- samples/flushfs/flush_fs_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/samples/flushfs/flush_fs_test.go b/samples/flushfs/flush_fs_test.go index ff77bdd..88ec590 100644 --- a/samples/flushfs/flush_fs_test.go +++ b/samples/flushfs/flush_fs_test.go @@ -631,7 +631,10 @@ type FlushErrorTest struct { func init() { RegisterTestSuite(&FlushErrorTest{}) } -func (t *FlushErrorTest) SetUp(ti *TestInfo) +func (t *FlushErrorTest) SetUp(ti *TestInfo) { + const noErr = 0 + t.flushFSTest.SetUp(ti, bazilfuse.ENOENT, noErr) +} func (t *FlushErrorTest) Close() { var err error @@ -714,7 +717,10 @@ type FsyncErrorTest struct { func init() { RegisterTestSuite(&FsyncErrorTest{}) } -func (t *FsyncErrorTest) SetUp(ti *TestInfo) +func (t *FsyncErrorTest) SetUp(ti *TestInfo) { + const noErr = 0 + t.flushFSTest.SetUp(ti, noErr, bazilfuse.ENOENT) +} func (t *FsyncErrorTest) Fsync() { var err error