Skip to content

Commit 340772f

Browse files
committed
fix(ci): skip tests not avail in ci
1 parent 2570dcd commit 340772f

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

tests/test_performance.bats

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Licensed under the MIT License. See LICENSE file for details.
44

55
load ../harness
6+
load test_helpers
67

78
setup() {
89
# Create test data for performance tests
@@ -208,11 +209,14 @@ teardown() {
208209
@test "can_connect_to performance with multiple connections" {
209210
# Test multiple rapid connections to known good endpoints
210211
# Note: Be respectful and don't hammer servers
211-
212+
skip_if_ci_with_reason "UDP connectivity unreliable in CI containers"
213+
skip_if_missing_nc
214+
skip_if_no_network
215+
212216
for i in {1..5}; do
213217
run can_connect_to "1.1.1.1" 53 udp
214218
[ "$status" -eq 0 ]
215-
219+
216220
# Small delay to be respectful
217221
sleep 0.1
218222
done
@@ -221,7 +225,8 @@ teardown() {
221225
@test "can_connect_to performance with timeout scenarios" {
222226
# Test connection attempts to unreachable addresses
223227
# These should timeout quickly due to /dev/tcp mechanism
224-
228+
skip_if_ci_with_reason "Timeout behavior unreliable in CI containers"
229+
225230
for i in {1..10}; do
226231
run can_connect_to "192.0.2.$i" 12345 tcp # RFC5737 test network
227232
[ "$status" -eq 1 ]

0 commit comments

Comments
 (0)