use request struct for Info

This commit is contained in:
Ethan Buchman
2017-09-22 11:10:39 -04:00
parent 3d1fd4cefa
commit 667c2543ea
15 changed files with 152 additions and 202 deletions

View File

@@ -80,7 +80,7 @@ func TestPersistentDummyInfo(t *testing.T) {
dummy := NewPersistentDummyApplication(dir)
height := uint64(0)
resInfo := dummy.Info()
resInfo := dummy.Info(types.RequestInfo{})
if resInfo.LastBlockHeight != height {
t.Fatalf("expected height of %d, got %d", height, resInfo.LastBlockHeight)
}
@@ -95,7 +95,7 @@ func TestPersistentDummyInfo(t *testing.T) {
dummy.EndBlock(height)
dummy.Commit()
resInfo = dummy.Info()
resInfo = dummy.Info(types.RequestInfo{})
if resInfo.LastBlockHeight != height {
t.Fatalf("expected height of %d, got %d", height, resInfo.LastBlockHeight)
}