Skip to content

Commit

Permalink
Merge pull request #158 from thinkAfCod/fix_init_throw
Browse files Browse the repository at this point in the history
fix: beacon fetcher test case
  • Loading branch information
thinkAfCod authored Apr 21, 2024
2 parents a9eb615 + 7063cc4 commit 6b0633e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ public List<BlobSidecar> getBlobSidecards(String blockId, final List<BigInteger>
blockId,
indices);
}
List<BlobSidecar> blobSiders = res.getData();

return res.getData();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static void setUp() {
if (!TestConstants.isConfiguredApiKeyEnv) {
return;
}
fetcher = new BeaconBlobFetcher(config.l1BeaconUrl());
fetcher = new BeaconBlobFetcher(config.l1BeaconUrl(), config.l1BeaconArchiverUrl());
}

@Test
Expand All @@ -57,10 +57,9 @@ void getBlobSidecardsAlreadyPrune() {
if (!TestConstants.isConfiguredApiKeyEnv) {
return;
}
var blobFetcher = new BeaconBlobFetcher(config.l1BeaconUrl(), config.l1BeaconArchiverUrl());
BigInteger slotFromTime = blobFetcher.getSlotFromTime(BigInteger.valueOf(1708659300L));
List<BlobSidecar> blobSidecards = blobFetcher.getBlobSidecards(slotFromTime.toString(), null);
assertTrue(blobSidecards != null && blobSidecards.size() > 0);
BigInteger slotFromTime = fetcher.getSlotFromTime(BigInteger.valueOf(1708659300L));
List<BlobSidecar> blobSidecards = fetcher.getBlobSidecards(slotFromTime.toString(), null);
assertTrue(blobSidecards != null && !blobSidecards.isEmpty());
}

@Test
Expand Down

0 comments on commit 6b0633e

Please sign in to comment.