there is no need to nil the app.settings on ResetBootstrapState
This commit is contained in:
parent
58401459bf
commit
78e70bd52b
|
@ -375,7 +375,6 @@ func (app *BaseApp) ResetBootstrapState() error {
|
||||||
|
|
||||||
app.dao = nil
|
app.dao = nil
|
||||||
app.logsDao = nil
|
app.logsDao = nil
|
||||||
app.settings = nil
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,10 +118,6 @@ func TestBaseAppBootstrap(t *testing.T) {
|
||||||
if app.logsDao != nil {
|
if app.logsDao != nil {
|
||||||
t.Fatalf("Expected app.logsDao to be nil, got %v.", app.logsDao)
|
t.Fatalf("Expected app.logsDao to be nil, got %v.", app.logsDao)
|
||||||
}
|
}
|
||||||
|
|
||||||
if app.settings != nil {
|
|
||||||
t.Fatalf("Expected app.settings to be nil, got %v.", app.settings)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestBaseAppGetters(t *testing.T) {
|
func TestBaseAppGetters(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue