From d311042d107f56bfa1a16fb7eb7baadb9856d345 Mon Sep 17 00:00:00 2001 From: Neeharika-Sompalli Date: Fri, 1 Mar 2024 12:28:57 -0600 Subject: [PATCH] fix failing test Signed-off-by: Neeharika-Sompalli --- .../impl/producers/formats/BlockRecordFactoryImplTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hedera-node/hedera-app/src/test/java/com/hedera/node/app/workflows/handle/record/impl/producers/formats/BlockRecordFactoryImplTest.java b/hedera-node/hedera-app/src/test/java/com/hedera/node/app/workflows/handle/record/impl/producers/formats/BlockRecordFactoryImplTest.java index 0c345f4c6690..467fdc7a05e5 100644 --- a/hedera-node/hedera-app/src/test/java/com/hedera/node/app/workflows/handle/record/impl/producers/formats/BlockRecordFactoryImplTest.java +++ b/hedera-node/hedera-app/src/test/java/com/hedera/node/app/workflows/handle/record/impl/producers/formats/BlockRecordFactoryImplTest.java @@ -28,7 +28,9 @@ final class BlockRecordFactoryImplTest extends AppTestBase { @Test void createV6BasedOnConfig() throws Exception { - final var app = appBuilder().build(); + final var app = appBuilder() + .withConfigValue("hedera.recordStream.logDir", "hedera-node/data/recordStreams") + .build(); final var factory = new BlockRecordWriterFactoryImpl(app.configProvider(), selfNodeInfo, SIGNER, FileSystems.getDefault()); final var writer = factory.create(); @@ -39,6 +41,7 @@ void createV6BasedOnConfig() throws Exception { void createV7BasedOnConfigThrows() throws Exception { final var app = appBuilder() .withConfigValue("hedera.recordStream.recordFileVersion", 7) + .withConfigValue("hedera.recordStream.logDir", "hedera-node/data/recordStreams") .build(); final var factory = @@ -52,6 +55,7 @@ void createV7BasedOnConfigThrows() throws Exception { void createUnknownVersionBasedOnConfigThrows() throws Exception { final var app = appBuilder() .withConfigValue("hedera.recordStream.recordFileVersion", 99999) + .withConfigValue("hedera.recordStream.logDir", "hedera-node/data/recordStreams") .build(); final var factory =