mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Catch retry error in taildrop send
This commit is contained in:
		
							parent
							
								
									f43a83aad7
								
							
						
					
					
						commit
						cf731fafab
					
				@ -580,7 +580,7 @@ func (s *IntegrationTestSuite) TestTailDrop() {
 | 
				
			|||||||
						fmt.Sprintf("/tmp/file_from_%s", hostname),
 | 
											fmt.Sprintf("/tmp/file_from_%s", hostname),
 | 
				
			||||||
						fmt.Sprintf("%s:", ip4),
 | 
											fmt.Sprintf("%s:", ip4),
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
					retry(10, 1*time.Second, func() error {
 | 
										err := retry(10, 1*time.Second, func() error {
 | 
				
			||||||
						log.Printf(
 | 
											log.Printf(
 | 
				
			||||||
							"Sending file from %s to %s\n",
 | 
												"Sending file from %s to %s\n",
 | 
				
			||||||
							hostname,
 | 
												hostname,
 | 
				
			||||||
@ -594,6 +594,7 @@ func (s *IntegrationTestSuite) TestTailDrop() {
 | 
				
			|||||||
						)
 | 
											)
 | 
				
			||||||
						return err
 | 
											return err
 | 
				
			||||||
					})
 | 
										})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					assert.Nil(t, err)
 | 
										assert.Nil(t, err)
 | 
				
			||||||
				})
 | 
									})
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user