Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
Signed-off-by: Neeharika-Sompalli <[email protected]>
  • Loading branch information
Neeharika-Sompalli committed Mar 1, 2024
1 parent e1dac59 commit d311042
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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 =
Expand All @@ -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 =
Expand Down

0 comments on commit d311042

Please sign in to comment.