mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-19 05:36:15 +00:00
service: remove stop method and use contexts (#7292)
This commit is contained in:
+4
-1
@@ -555,6 +555,9 @@ func TestCommitToVoteSetWithVotesForNilBlock(t *testing.T) {
|
||||
round = 0
|
||||
)
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
||||
type commitVoteTest struct {
|
||||
blockIDs []BlockID
|
||||
numVotes []int // must sum to numValidators
|
||||
@@ -572,7 +575,7 @@ func TestCommitToVoteSetWithVotesForNilBlock(t *testing.T) {
|
||||
vi := int32(0)
|
||||
for n := range tc.blockIDs {
|
||||
for i := 0; i < tc.numVotes[n]; i++ {
|
||||
pubKey, err := vals[vi].GetPubKey(context.Background())
|
||||
pubKey, err := vals[vi].GetPubKey(ctx)
|
||||
require.NoError(t, err)
|
||||
vote := &Vote{
|
||||
ValidatorAddress: pubKey.Address(),
|
||||
|
||||
Reference in New Issue
Block a user