Skip to content

rpc: clean up client global state in tests#6438

Merged
tychoish merged 9 commits intotendermint:masterfrom
tychoish:rpc-test-global-state
May 11, 2021
Merged

rpc: clean up client global state in tests#6438
tychoish merged 9 commits intotendermint:masterfrom
tychoish:rpc-test-global-state

Conversation

@tychoish
Copy link
Contributor

@tychoish tychoish commented May 7, 2021

Resolves #6424

While there might additional improvements to these tests, this removes
three major cases of shared global state between tests.

@tychoish tychoish marked this pull request as draft May 8, 2021 00:47
@codecov
Copy link

codecov bot commented May 10, 2021

Codecov Report

Merging #6438 (64de48c) into master (811dbe4) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6438      +/-   ##
==========================================
- Coverage   60.92%   60.88%   -0.05%     
==========================================
  Files         287      287              
  Lines       27087    27087              
==========================================
- Hits        16502    16491      -11     
- Misses       8883     8895      +12     
+ Partials     1702     1701       -1     
Impacted Files Coverage Δ
consensus/reactor.go 66.97% <0.00%> (-3.09%) ⬇️
p2p/pex/reactor.go 82.17% <0.00%> (-2.98%) ⬇️
consensus/peer_state.go 79.82% <0.00%> (-2.20%) ⬇️
mempool/reactor.go 73.04% <0.00%> (-1.42%) ⬇️
consensus/wal.go 59.00% <0.00%> (-1.25%) ⬇️
p2p/switch.go 60.18% <0.00%> (-0.47%) ⬇️
proxy/multi_app_conn.go 48.05% <0.00%> (ø)
p2p/router.go 78.07% <0.00%> (+0.48%) ⬆️
consensus/state.go 67.14% <0.00%> (+0.54%) ⬆️
statesync/syncer.go 79.44% <0.00%> (+0.79%) ⬆️
... and 5 more

@tychoish tychoish marked this pull request as ready for review May 10, 2021 17:01
Copy link
Contributor

@cmwaters cmwaters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@cmwaters cmwaters changed the title rpc: clean up cliet global state in tests rpc: clean up client global state in tests May 11, 2021
@tychoish tychoish merged commit fdd506a into tendermint:master May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rpc: remove global state in variables.

2 participants