Skip to content

Commit 8c39bea

Browse files
committed
fixes acceptance test
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
1 parent b79a315 commit 8c39bea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/server/tests/acceptance/rpc_batch1.spec.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { expect } from 'chai';
2121
import { ethers } from 'ethers';
2222

2323
import { ConfigServiceTestHelper } from '../../../config-service/tests/configServiceTestHelper';
24-
import { BLOCK_PARAMS_ERROR } from '../../src/validator/constants';
24+
import { BLOCK_NUMBER_ERROR, HASH_ERROR } from '../../src/validator/constants';
2525
import basicContract from '../../tests/contracts/Basic.json';
2626
import RelayCalls from '../../tests/helpers/constants';
2727
import MirrorClient from '../clients/mirrorClient';
@@ -812,7 +812,10 @@ describe('@api-batch-1 RPC Server Acceptance Tests', function () {
812812
});
813813

814814
it('should throw error on "eth_getBlockReceipts" with invalid parameter passed', async function () {
815-
const error = predefined.INVALID_PARAMETER(0, BLOCK_PARAMS_ERROR);
815+
const error = predefined.INVALID_PARAMETER(
816+
0,
817+
`The value passed is not valid: 0x. ${BLOCK_NUMBER_ERROR} OR Expected ${HASH_ERROR} of a block`,
818+
);
816819
Assertions.assertPredefinedRpcError(error, relay.call, true, relay, [
817820
RelayCalls.ETH_ENDPOINTS.ETH_GET_BLOCK_RECEIPTS,
818821
['0x', requestIdPrefix],

0 commit comments

Comments
 (0)