@@ -1297,13 +1297,13 @@ func Test_mirror_loop(t *testing.T) {
12971297
12981298 go repo .StartLoop (txtCtx )
12991299
1300- time .Sleep (testInterval )
1300+ time .Sleep (testInterval + time . Second )
13011301 if repo .IsRunning () != true {
13021302 t .Errorf ("repo running state is still false after starting mirror loop" )
13031303 }
13041304
13051305 // wait for the mirror
1306- time .Sleep (testInterval )
1306+ time .Sleep (testInterval + time . Second )
13071307
13081308 // verify checkout files
13091309 assertLinkedFile (t , root , link1 , "file" , t .Name ()+ "-1" )
@@ -1314,7 +1314,7 @@ func Test_mirror_loop(t *testing.T) {
13141314 mustCommit (t , upstream , "file" , t .Name ()+ "-2" )
13151315
13161316 // wait for the mirror
1317- time .Sleep (testInterval )
1317+ time .Sleep (testInterval + time . Second )
13181318
13191319 assertLinkedFile (t , root , link1 , "file" , t .Name ()+ "-2" )
13201320 assertLinkedFile (t , root , link2 , "file" , t .Name ()+ "-2" )
@@ -1324,7 +1324,7 @@ func Test_mirror_loop(t *testing.T) {
13241324 mustExec (t , upstream , "git" , "reset" , "-q" , "--hard" , "HEAD^" )
13251325
13261326 // wait for the mirror
1327- time .Sleep (testInterval )
1327+ time .Sleep (testInterval + time . Second )
13281328
13291329 assertLinkedFile (t , root , link1 , "file" , t .Name ()+ "-1" )
13301330 assertLinkedFile (t , root , link2 , "file" , t .Name ()+ "-1" )
@@ -1577,7 +1577,7 @@ func Test_RepoPool_Error(t *testing.T) {
15771577 // start mirror loop
15781578 rp .StartLoop ()
15791579
1580- time .Sleep (time .Second )
1580+ time .Sleep (2 * time .Second )
15811581
15821582 // verify Hash and checked out files
15831583 if got , err := rp .Hash (txtCtx , remote1 , "HEAD" , "" ); err != nil {
0 commit comments