Skip to content

Commit 41dbadb

Browse files
authored
fix: update filter when creating nb node with private ip (#312)
## 📝 Description Fixing one of intermittent failure in smoke tests : test_create_nb_node - Update filter to start from 192.168 since it sometimes picks up public ip if it filters only 192 ## ✔️ How to Test make smoketest ## 📷 Preview **If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.**
1 parent d231987 commit 41dbadb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/models/test_nodebalancer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_create_nb_node(
6161
create_nb_config.nodebalancer_id,
6262
)
6363
linode = create_linode_with_private_ip
64-
address = [a for a in linode.ipv4 if re.search("192.+", a)][0]
64+
address = [a for a in linode.ipv4 if re.search("192.168.+", a)][0]
6565
node = config.node_create(
6666
"node_test", address + ":80", weight=50, mode="accept"
6767
)

0 commit comments

Comments
 (0)