Use unit test data directory for fdbrpc/AsyncFileEncrypted test

This commit is contained in:
sfc-gh-tclinkenbeard 2021-06-25 12:23:08 -07:00
parent 81b8292094
commit 5858ca3c62
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ TEST_CASE("fdbrpc/AsyncFileEncrypted") {
int flags = IAsyncFile::OPEN_READWRITE | IAsyncFile::OPEN_CREATE | IAsyncFile::OPEN_ATOMIC_WRITE_AND_CREATE |
IAsyncFile::OPEN_UNBUFFERED | IAsyncFile::OPEN_ENCRYPTED | IAsyncFile::OPEN_UNCACHED |
IAsyncFile::OPEN_NO_AIO;
state Reference<IAsyncFile> file = wait(IAsyncFileSystem::filesystem()->open("/tmp/test", flags, 0600));
state Reference<IAsyncFile> file = wait(IAsyncFileSystem::filesystem()->open(params.getDataDir(), flags, 0600));
state int bytesWritten = 0;
while (bytesWritten < bytes) {
chunkSize = std::min(deterministicRandom()->randomInt(0, 100), bytes - bytesWritten);