Skip to content

Commit

Permalink
test: fix integration test on cp endpoint update
Browse files Browse the repository at this point in the history
As with #6724, controlplane node kubelet doesn't use control plane
endpoint anymore, run the test on the worker node instead of cp node.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
  • Loading branch information
smira committed Jan 12, 2023
1 parent 8e9fc13 commit 062c7d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/integration/api/update-endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (suite *UpdateEndpointSuite) SuiteName() string {
// SetupTest ...
func (suite *UpdateEndpointSuite) SetupTest() {
// make sure API calls have timeout
suite.ctx, suite.ctxCancel = context.WithTimeout(context.Background(), 5*time.Minute)
suite.ctx, suite.ctxCancel = context.WithTimeout(context.Background(), 10*time.Minute)
}

// TearDownTest ...
Expand All @@ -55,7 +55,7 @@ func (suite *UpdateEndpointSuite) TestUpdateControlPlaneEndpoint() {
suite.T().Skip("skipping in short mode")
}

nodeInternalIP := suite.RandomDiscoveredNodeInternalIP(machine.TypeControlPlane)
nodeInternalIP := suite.RandomDiscoveredNodeInternalIP(machine.TypeWorker)

node, err := suite.GetK8sNodeByInternalIP(suite.ctx, nodeInternalIP)
suite.Require().NoError(err)
Expand Down

0 comments on commit 062c7d7

Please sign in to comment.