(c *C, condition func() bool)
| 600 | } |
| 601 | |
| 602 | func eventually(c *C, condition func() bool) { |
| 603 | select { |
| 604 | case <-time.After(5 * time.Second): |
| 605 | default: |
| 606 | if condition() { |
| 607 | break |
| 608 | } |
| 609 | time.Sleep(100 * time.Millisecond) |
| 610 | } |
| 611 | |
| 612 | c.Assert(condition(), Equals, true) |
| 613 | } |
| 614 | |
| 615 | func (s *RemoteSuite) TestPushContextCanceled(c *C) { |
| 616 | url, clean := s.TemporalDir() |
no outgoing calls
no test coverage detected