Skip to content

Commit

Permalink
fix: beacon fetcher test case
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkAfCod committed Apr 21, 2024
1 parent a9eb615 commit 7063cc4
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 7063cc4

Please sign in to comment.