Skip to content

Commit

Permalink
Fix memory state reader tests (stellar#1428)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekn authored Jun 18, 2019
1 parent 43f5b60 commit 821bc58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exp/ingest/io/memory_state_reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ func (s *MemoryStateReaderTestSuite) TestSimple() {
Return(createXdrStream(), nil).Once()
}

var e xdr.LedgerEntry
var e xdr.LedgerEntryChange
var err error
e, err = s.reader.Read()
s.Require().NoError(err)

id := e.Data.MustAccount().AccountId
id := e.State.Data.MustAccount().AccountId
s.Assert().Equal("GC3C4AKRBQLHOJ45U4XG35ESVWRDECWO5XLDGYADO6DPR3L7KIDVUMML", id.Address())

_, err = s.reader.Read()
Expand Down Expand Up @@ -193,7 +193,7 @@ func (s *MemoryStateReaderTestSuite) TestEnsureLatestLiveEntry() {
entry, err := s.reader.Read()
s.Require().Nil(err)
// Latest entry balance is 1
s.Assert().Equal(xdr.Int64(1), entry.Data.Account.Balance)
s.Assert().Equal(xdr.Int64(1), entry.State.Data.Account.Balance)

_, err = s.reader.Read()
s.Require().Equal(err, EOF)
Expand Down

0 comments on commit 821bc58

Please sign in to comment.