Addressed pr comments

This commit is contained in:
Ethan Frey
2018-03-01 02:36:08 +00:00
committed by rigelrozanski
parent 34772f8b6e
commit 7848ee23db
5 changed files with 40 additions and 33 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ import (
// It should work similar to a real app.
// Make sure rootDir is empty before running the test,
// in order to guarantee consistent results
func NewApp(logger log.Logger, rootDir string) (abci.Application, error) {
func NewApp(rootDir string, logger log.Logger) (abci.Application, error) {
db, err := dbm.NewGoLevelDB("mock", rootDir)
if err != nil {
return nil, err
+1 -1
View File
@@ -22,6 +22,6 @@ func SetupApp() (abci.Application, func(), error) {
os.RemoveAll(rootDir)
}
app, err := NewApp(logger, rootDir)
app, err := NewApp(rootDir, logger)
return app, cleanup, err
}