Skip to content

Commit 8ff5ce3

Browse files
committed
Use more "common" values for NodePort in test for improved test readability.
1 parent a48789d commit 8ff5ce3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/cloudscale_ccm/reconcile_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ func TestDesiredService(t *testing.T) {
137137
{
138138
Protocol: "TCP",
139139
Port: 80,
140-
NodePort: 8080,
140+
NodePort: 30080,
141141
Name: "http",
142142
},
143143
{
144144
Protocol: "TCP",
145145
Port: 443,
146-
NodePort: 8443,
146+
NodePort: 30443,
147147
Name: "https",
148148
},
149149
}
@@ -173,11 +173,11 @@ func TestDesiredService(t *testing.T) {
173173
assert.Equal(t, "10.0.0.2", members[1].Address)
174174

175175
assert.True(t,
176-
members[0].ProtocolPort == 8443 ||
177-
members[0].ProtocolPort == 8080)
176+
members[0].ProtocolPort == 30443 ||
177+
members[0].ProtocolPort == 30080)
178178
assert.True(t,
179-
members[1].ProtocolPort == 8443 ||
180-
members[1].ProtocolPort == 8080)
179+
members[1].ProtocolPort == 30443 ||
180+
members[1].ProtocolPort == 30080)
181181
}
182182

183183
// One listener per pool
@@ -864,7 +864,7 @@ func TestLimitSubnets(t *testing.T) {
864864
{
865865
Protocol: "TCP",
866866
Port: 80,
867-
NodePort: 123456,
867+
NodePort: 30080,
868868
},
869869
}
870870

0 commit comments

Comments
 (0)