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

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelStark committed Aug 6, 2019
1 parent e5dc3fa commit e2bb261
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ public void streamAccounts_singleAccount() {
List<Account> accounts =
worldState.streamAccounts(Bytes32.ZERO, 10).collect(Collectors.toList());
assertThat(accounts.size()).isEqualTo(1L);
assertThat(accounts.get(0).getAddress()).isEqualTo(ADDRESS);
assertThat(accounts.get(0).getAddress().get()).isEqualTo(ADDRESS);
assertThat(accounts.get(0).getBalance()).isEqualTo(Wei.of(100000));

// Check again after persisting
worldState.persist();
accounts = worldState.streamAccounts(Bytes32.ZERO, 10).collect(Collectors.toList());
assertThat(accounts.size()).isEqualTo(1L);
assertThat(accounts.get(0).getAddress()).isEqualTo(ADDRESS);
assertThat(accounts.get(0).getAddress().get()).isEqualTo(ADDRESS);
assertThat(accounts.get(0).getBalance()).isEqualTo(Wei.of(100000));
}

Expand Down

0 comments on commit e2bb261

Please sign in to comment.