MCPcopy Create free account
hub / github.com/go-git/go-git / eventually

Function eventually

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

Source from the content-addressed store, hash-verified

600}
601
602func 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
615func (s *RemoteSuite) TestPushContextCanceled(c *C) {
616 url, clean := s.TemporalDir()

Callers 2

TestPushContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected