Skip to content

Commit 132a41a

Browse files
committed
Lower CI timeout
1 parent 85753ef commit 132a41a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
runs-on: ubuntu-latest
3838
env:
3939
VERBOSE: "true"
40-
TIMEOUT: "30"
4140
LOW_TIMEOUT: "0.01"
4241
DRIVER: ruby
4342
REDIS_BRANCH: "7.0"
@@ -78,7 +77,6 @@ jobs:
7877
runs-on: ubuntu-latest
7978
env:
8079
VERBOSE: "true"
81-
TIMEOUT: "30"
8280
LOW_TIMEOUT: "0.01"
8381
DRIVER: ${{ matrix.driver }}
8482
REDIS_BRANCH: "7.0"
@@ -118,7 +116,6 @@ jobs:
118116
runs-on: ubuntu-latest
119117
env:
120118
VERBOSE: "true"
121-
TIMEOUT: "30"
122119
LOW_TIMEOUT: "0.14"
123120
DRIVER: ruby
124121
REDIS_BRANCH: ${{ matrix.redis }}
@@ -156,7 +153,6 @@ jobs:
156153
runs-on: ubuntu-latest
157154
env:
158155
VERBOSE: "true"
159-
TIMEOUT: "30"
160156
LOW_TIMEOUT: "0.14"
161157
DRIVER: ruby
162158
REDIS_BRANCH: "7.0"
@@ -194,7 +190,7 @@ jobs:
194190
runs-on: ubuntu-latest
195191
env:
196192
VERBOSE: "true"
197-
TIMEOUT: "30"
193+
TIMEOUT: "15"
198194
LOW_TIMEOUT: "0.14"
199195
DRIVER: ruby
200196
REDIS_BRANCH: "7.0"

test/redis/internals_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ def test_large_payload
99
# see: https://github.com/redis/redis-rb/issues/962
1010
# large payloads will trigger write_nonblock to write a portion
1111
# of the payload in connection/ruby.rb _write_to_socket
12+
13+
# We use a larger timeout for TruffleRuby
14+
# https://github.com/redis/redis-rb/pull/1128#issuecomment-1218490684
15+
r = init(_new_client(timeout: TIMEOUT * 5))
1216
large = "\u3042" * 4_000_000
1317
r.setex("foo", 10, large)
1418
result = r.get("foo")

0 commit comments

Comments
 (0)