MCPcopy
hub / github.com/go-git/go-git / eventually

Function eventually

remote_test.go:632–643  ·  view source on GitHub ↗
(c *C, condition func() bool)

Source from the content-addressed store, hash-verified

630}
631
632func 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
645func (s *RemoteSuite) TestPushContextCanceled(c *C) {
646 url := c.MkDir()

Callers 2

TestPushContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…