(c *C, condition func() bool)
| 630 | } |
| 631 | |
| 632 | func eventually(c *C, condition func() bool) { |
| 633 | select { |
| 634 | case <-time.After(5 * time.Second): |
| 635 | default: |
| 636 | if condition() { |
| 637 | break |
| 638 | } |
| 639 | time.Sleep(100 * time.Millisecond) |
| 640 | } |
| 641 | |
| 642 | c.Assert(condition(), Equals, true) |
| 643 | } |
| 644 | |
| 645 | func (s *RemoteSuite) TestPushContextCanceled(c *C) { |
| 646 | url := c.MkDir() |
no outgoing calls
no test coverage detected
searching dependent graphs…