summaryrefslogtreecommitdiff
path: root/test/test_directory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_directory.cpp')
-rw-r--r--test/test_directory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_directory.cpp b/test/test_directory.cpp
index ba1c0e1..96b9c2d 100644
--- a/test/test_directory.cpp
+++ b/test/test_directory.cpp
@@ -60,9 +60,9 @@ TEST(FudDirectory, Basic)
CBinaryFile file{std::move(fileResult).takeOkay()};
ASSERT_EQ(file.open(), FudStatus::Success);
Array<utf8, 5> data{u8"test"};
- WriteResult expected{data.size(), FudStatus::Success};
+ DrainResult expected{data.size(), FudStatus::Success};
auto writeResult = file.write(data);
- ASSERT_EQ(writeResult.bytesWritten, expected.bytesWritten);
+ ASSERT_EQ(writeResult.bytesDrained, expected.bytesDrained);
ASSERT_EQ(writeResult.status, expected.status);
}