Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
^‿^
Browse files Browse the repository at this point in the history
  • Loading branch information
smatthewenglish committed Apr 11, 2019
1 parent b36c860 commit 16d2a60
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public class TransactionPoolTest {
private final ExecutionContextTestFixture executionContext = ExecutionContextTestFixture.create();
private final ProtocolContext<Void> protocolContext = executionContext.getProtocolContext();
private TransactionPool transactionPool;
private SyncState syncState;
private long genesisBlockGasLimit;
private final AccountFilter accountFilter = mock(AccountFilter.class);

Expand All @@ -99,8 +98,8 @@ public void setUp() {
when(protocolSchedule.getByBlockNumber(anyLong())).thenReturn(protocolSpec);
when(protocolSpec.getTransactionValidator()).thenReturn(transactionValidator);
genesisBlockGasLimit = executionContext.getGenesis().getHeader().getGasLimit();
syncState = mock(SyncState.class);
when(syncState.isInSync(any())).thenReturn(true);
SyncState syncState = mock(SyncState.class);
when(syncState.isInSync(anyLong())).thenReturn(true);

transactionPool =
new TransactionPool(
Expand Down Expand Up @@ -416,7 +415,7 @@ public void shouldAllowTransactionWhenAccountWhitelistControllerIsNotPresent() {
@Test
public void shouldRejectRemoteTransactionsWhenNotInSync() {
SyncState syncState = mock(SyncState.class);
when(syncState.isInSync(any())).thenReturn(false);
when(syncState.isInSync(anyLong())).thenReturn(false);
TransactionPool transactionPool =
new TransactionPool(
transactions, protocolSchedule, protocolContext, batchAddedListener, syncState);
Expand Down Expand Up @@ -448,7 +447,7 @@ public void shouldRejectRemoteTransactionsWhenNotInSync() {
@Test
public void shouldAllowRemoteTransactionsWhenInSync() {
SyncState syncState = mock(SyncState.class);
when(syncState.isInSync(any())).thenReturn(true);
when(syncState.isInSync(anyLong())).thenReturn(true);
TransactionPool transactionPool =
new TransactionPool(
transactions, protocolSchedule, protocolContext, batchAddedListener, syncState);
Expand Down

0 comments on commit 16d2a60

Please sign in to comment.