Addressed pr comments
This commit is contained in:
committed by
rigelrozanski
parent
34772f8b6e
commit
7848ee23db
+1
-1
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user