summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-07-08 12:05:06 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-07-08 12:05:06 +0000
commit0b2ada8a274324f9a816849d178262ce078895a1 (patch)
treefab56420d5e12799e9b1b008e96f8e2a889e8785 /searchlib
parent11e4111bb45d926f7090adc599dcd08e59461a71 (diff)
Update with correct expected results
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/datastore/logdatastore_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/searchlib/src/tests/datastore/logdatastore_test.cpp b/searchlib/src/tests/datastore/logdatastore_test.cpp
index 2804e93331c..ba2e53d58b9 100644
--- a/searchlib/src/tests/datastore/logdatastore_test.cpp
+++ b/searchlib/src/tests/datastore/logdatastore_test.cpp
@@ -129,7 +129,7 @@ TEST("testThatLidInfoOrdersFileChunkSize") {
}
TEST("test that DirectIOPadding works accordng to spec") {
- constexpr size_t FILE_SIZE= 100000;
+ constexpr size_t FILE_SIZE = 4096*30;
FastOS_File file("directio.test");
file.EnableDirectIO();
EXPECT_TRUE(file.OpenReadWrite());
@@ -144,11 +144,11 @@ TEST("test that DirectIOPadding works accordng to spec") {
EXPECT_TRUE(file.DirectIOPadding(4095, 4096, padBefore, padAfter));
EXPECT_EQUAL(4095u, padBefore);
- EXPECT_EQUAL(0u, padAfter);
+ EXPECT_EQUAL(1u, padAfter);
EXPECT_TRUE(file.DirectIOPadding(4097, 4096, padBefore, padAfter));
EXPECT_EQUAL(1u, padBefore);
- EXPECT_EQUAL(0u, padAfter);
+ EXPECT_EQUAL(4095u, padAfter);
EXPECT_TRUE(file.DirectIOPadding(4096, 4097, padBefore, padAfter));
EXPECT_EQUAL(0u, padBefore);