Skip to content

Commit

Permalink
remove block check in get genesis info test
Browse files Browse the repository at this point in the history
  • Loading branch information
bharath-123 committed May 27, 2024
1 parent 9fe377c commit 1a4b890
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions grpc/execution/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ func TestExecutionService_GetGenesisInfo(t *testing.T) {
if serviceV1Alpha1.genesisInfoCalled != true {
t.Fatalf("GetGenesisInfo should be called")
}

res := ethservice.BlockChain().GetBlockByNumber(3)
if res == nil {
t.Fatalf("Block not found")
}
}

func TestExecutionService_GetBlockByBlockNumber(t *testing.T) {
Expand Down Expand Up @@ -286,7 +281,7 @@ func TestExecutionServiceServerV1Alpha2_GetCommitmentState(t *testing.T) {

func TestExecutionServiceServerV1Alpha2_ExecuteBlockAndUpdateCommitment(t *testing.T) {
n, ethservice, _ := setupExecutionService(t, 10)

conn, err := grpc.Dial(GrpcEndpointWithoutPrefix(n), grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
t.Fatalf("Failed to dial gRPC: %v", err)
Expand Down

0 comments on commit 1a4b890

Please sign in to comment.