mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-31 21:17:43 +09:00 
			
		
		
		
	integration: rework retry for waiting for node sync
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
		
				
					committed by
					
						 Kristoffer Dalby
						Kristoffer Dalby
					
				
			
			
				
	
			
			
			
						parent
						
							9d236571f4
						
					
				
				
					commit
					3b16b75fe6
				
			| @@ -11,6 +11,7 @@ import ( | ||||
| 	policyv2 "github.com/juanfont/headscale/hscontrol/policy/v2" | ||||
| 	"github.com/juanfont/headscale/hscontrol/types" | ||||
| 	"github.com/juanfont/headscale/integration/hsic" | ||||
| 	"github.com/juanfont/headscale/integration/integrationutil" | ||||
| 	"github.com/juanfont/headscale/integration/tsic" | ||||
| 	"github.com/stretchr/testify/assert" | ||||
| 	"github.com/stretchr/testify/require" | ||||
| @@ -312,7 +313,7 @@ func TestACLHostsInNetMapTable(t *testing.T) { | ||||
| 			allClients, err := scenario.ListTailscaleClients() | ||||
| 			require.NoError(t, err) | ||||
|  | ||||
| 			err = scenario.WaitForTailscaleSyncWithPeerCount(testCase.want["user1@test.no"]) | ||||
| 			err = scenario.WaitForTailscaleSyncWithPeerCount(testCase.want["user1@test.no"], integrationutil.PeerSyncTimeout(), integrationutil.PeerSyncRetryInterval()) | ||||
| 			require.NoError(t, err) | ||||
|  | ||||
| 			for _, client := range allClients { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user