Skip to content

Commit 7833e71

Browse files
authored
Merge pull request #2608 from fermyon/fix-broken-runtime-tests
Fix broken TCP runtime tests.
2 parents f481796 + efd417d commit 7833e71

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/runtime-tests/tests/tcp-sockets-ip-range-variable-permission/spin.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ authors = ["Fermyon Engineering <[email protected]>"]
66
version = "0.1.0"
77

88
[variables]
9-
addr_prefix = { default = "127.0.0.0"}
10-
prefix_len = { default = "24"}
9+
addr_prefix = { default = "127.0.0.0" }
10+
prefix_len = { default = "24" }
1111

1212
[[trigger.http]]
1313
route = "/"
1414
component = "test"
1515

1616
[component.test]
1717
source = "%{source=tcp-sockets}"
18-
environment = { ADDRESS = "127.0.0.1:%{port=5000}" }
19-
allowed_outbound_hosts = ["*://{{ addr_prefix }}/{{ prefix_len }}:%{port=5000}"]
18+
environment = { ADDRESS = "127.0.0.1:%{port=7}" }
19+
allowed_outbound_hosts = ["*://{{ addr_prefix }}/{{ prefix_len }}:%{port=7}"]

tests/runtime-tests/tests/tcp-sockets-ip-range/spin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ component = "test"
1111

1212
[component.test]
1313
source = "%{source=tcp-sockets}"
14-
environment = { ADDRESS = "127.0.0.1:%{port=5000}" }
15-
allowed_outbound_hosts = ["*://127.0.0.0/24:%{port=5000}"]
14+
environment = { ADDRESS = "127.0.0.1:%{port=7}" }
15+
allowed_outbound_hosts = ["*://127.0.0.0/24:%{port=7}"]

tests/runtime-tests/tests/tcp-sockets/spin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ component = "test"
1111

1212
[component.test]
1313
source = "%{source=tcp-sockets}"
14-
environment = { ADDRESS = "127.0.0.1:%{port=5000}" }
15-
allowed_outbound_hosts = ["*://127.0.0.1:%{port=5000}"]
14+
environment = { ADDRESS = "127.0.0.1:%{port=7}" }
15+
allowed_outbound_hosts = ["*://127.0.0.1:%{port=7}"]

0 commit comments

Comments
 (0)