p2p/discv5, p2p/testing: add missing Timer.Stop calls in tests (#20869)
This commit is contained in:
		@@ -242,6 +242,7 @@ func (s *ProtocolSession) testExchange(e Exchange) error {
 | 
			
		||||
		t = 2000 * time.Millisecond
 | 
			
		||||
	}
 | 
			
		||||
	alarm := time.NewTimer(t)
 | 
			
		||||
	defer alarm.Stop()
 | 
			
		||||
	select {
 | 
			
		||||
	case err := <-errc:
 | 
			
		||||
		return err
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user