(full string)
| 484 | } |
| 485 | |
| 486 | func (s *mockMaintNotificationsDowngradeServer) record(full string) int { |
| 487 | s.mu.Lock() |
| 488 | defer s.mu.Unlock() |
| 489 | s.commands = append(s.commands, full) |
| 490 | if full != maintNotificationsCommand { |
| 491 | return 0 |
| 492 | } |
| 493 | calls := 0 |
| 494 | for _, cmd := range s.commands { |
| 495 | if cmd == maintNotificationsCommand { |
| 496 | calls++ |
| 497 | } |
| 498 | } |
| 499 | return calls |
| 500 | } |
| 501 | |
| 502 | func (s *mockMaintNotificationsDowngradeServer) handle(c net.Conn) { |
| 503 | defer c.Close() |