Browse Source
e2e: control access to state in Info calls (#7345)
This is probably belt and suspenders, but might help the apphash clarity.
pull/7349/head
Sam Kleinman
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
test/e2e/app/app.go
|
|
@ -97,6 +97,9 @@ func NewApplication(cfg *Config) (*Application, error) { |
|
|
|
|
|
|
|
// Info implements ABCI.
|
|
|
|
func (app *Application) Info(req abci.RequestInfo) abci.ResponseInfo { |
|
|
|
app.state.RLock() |
|
|
|
defer app.state.RUnlock() |
|
|
|
|
|
|
|
return abci.ResponseInfo{ |
|
|
|
Version: version.ABCIVersion, |
|
|
|
AppVersion: 1, |
|
|
|