summaryrefslogtreecommitdiff
path: root/dev-ruby/rack-cache/files/rack-cache-1.13.0-test-require.patch
blob: 3d7d04deaa25e103fe8b3603094afe933547ff29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
https://github.com/rack/rack-cache/pull/14

From db34e2b5ab7b16051f7158b2896e56502992c33e Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Mon, 3 Apr 2023 03:31:31 +0100
Subject: [PATCH] test: Add explicit 'timeout' require

Fixes the following when running tests individually:
```
  1) Error:
Rack::Cache::Context#test_0078_passes if there was a metastore exception:
NameError: uninitialized constant Timeout
    test/context_test.rb:981:in `block (3 levels) in <top (required)>'
    test/test_helper.rb:170:in `request'
    test/test_helper.rb:177:in `get'
    test/context_test.rb:980:in `block (2 levels) in <top (required)>'
```

Signed-off-by: Sam James <sam@gentoo.org>
--- a/test/context_test.rb
+++ b/test/context_test.rb
@@ -1,4 +1,5 @@
 require_relative 'test_helper'
+require 'timeout'
 require 'rack/cache/context'
 
 describe Rack::Cache::Context do