@@ -26,6 +26,11 @@ var _ = ginkgo.Describe("Duplicate node handling", func() {
2626 ginkgo .It ("should ensure that a given Node ID (i.e. staking keypair) can be used at most once on a network" , func () {
2727 network := e2e .GetEnv (tc ).GetNetwork ()
2828
29+ if network .DefaultRuntimeConfig .KubeRuntimeConfig != nil {
30+ // Enabling this test for kube requires supporting a flexible name mapping
31+ ginkgo .Skip ("This test is not supported on kube because it relies on the mapping of network uuid + nodeid -> statefulset name" )
32+ }
33+
2934 tc .By ("creating new node" )
3035 node1 := e2e .AddEphemeralNode (tc , network , tmpnet.FlagsMap {})
3136 e2e .WaitForHealthy (tc , node1 )
@@ -43,10 +48,10 @@ var _ = ginkgo.Describe("Duplicate node handling", func() {
4348 // the same node ID.
4449 config .DataDirKey : fmt .Sprintf ("%s-second" , node1Flags [config .DataDirKey ]),
4550 }
46- node2 := e2e .AddEphemeralNode (tc , network , node2Flags )
51+ node2 := e2e .AddEphemeralNodeWithWaitForHealth (tc , network , node2Flags , false /* waitForHealth */ )
4752
4853 tc .By ("checking that the second new node fails to become healthy before timeout" )
49- err := tmpnet .WaitForHealthy (tc .DefaultContext (), node2 )
54+ err := tmpnet .WaitForHealthyNode (tc .DefaultContext (), tc . Log (), node2 )
5055 require .ErrorIs (err , context .DeadlineExceeded )
5156
5257 tc .By ("stopping the first new node" )
@@ -68,7 +73,8 @@ func checkConnectedPeers(tc tests.TestContext, existingNodes []*tmpnet.Node, new
6873 require := require .New (tc )
6974
7075 // Collect the node ids of the new node's peers
71- infoClient := info .NewClient (newNode .URI )
76+ uri := e2e .GetLocalURI (tc , newNode )
77+ infoClient := info .NewClient (uri )
7278 peers , err := infoClient .Peers (tc .DefaultContext (), nil )
7379 require .NoError (err )
7480 peerIDs := set.NewSet [ids.NodeID ](len (existingNodes ))
@@ -81,7 +87,8 @@ func checkConnectedPeers(tc tests.TestContext, existingNodes []*tmpnet.Node, new
8187 require .True (peerIDs .Contains (existingNode .NodeID ))
8288
8389 // Check that the new node is a peer
84- infoClient := info .NewClient (existingNode .URI )
90+ uri := e2e .GetLocalURI (tc , existingNode )
91+ infoClient := info .NewClient (uri )
8592 peers , err := infoClient .Peers (tc .DefaultContext (), nil )
8693 require .NoError (err )
8794 isPeer := false
0 commit comments