Skip to content

Commit

Permalink
add optional capabilities test
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Oct 2, 2024
1 parent 868eebe commit d878f31
Showing 1 changed file with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,20 @@ void getsCapabilities() {
"engine_getPayloadV3",
"engine_forkchoiceUpdatedV3",
"engine_newPayloadV4",
"engine_getPayloadV4",
"engine_getBlobsV1");
"engine_getPayloadV4");
}

@Test
void getsOptionalCapabilities() {
final Spec spec =
TestSpecFactory.createMinimalWithCapellaDenebAndElectraForkEpoch(
UInt64.ONE, UInt64.valueOf(2), UInt64.valueOf(3));

final MilestoneBasedEngineJsonRpcMethodsResolver engineMethodsResolver =
new MilestoneBasedEngineJsonRpcMethodsResolver(spec, executionEngineClient);

final Set<String> capabilities = engineMethodsResolver.getOptionalCapabilities();

assertThat(capabilities).containsExactlyInAnyOrder("engine_getBlobsV1");
}
}

0 comments on commit d878f31

Please sign in to comment.