Debian Codegraph @

debian/patches/0001-Disable-flaky-ExampleLRU-test.patch

raw
1 From: Shengjing Zhu <[email protected]>
2 Date: Wed, 10 Apr 2024 16:12:11 +0800
3 Subject: Disable flaky ExampleLRU test
4
5 362s --- FAIL: ExampleLRU (0.10s)
6 362s got:
7 362s value before expiration is found: true, value: "val1"
8 362s value after expiration is found: false, value: ""
9 362s Cache len: 2
10 362s want:
11 362s value before expiration is found: true, value: "val1"
12 362s value after expiration is found: false, value: ""
13 362s Cache len: 1
14 362s FAIL
15 ---
16 expirable/expirable_lru_test.go | 4 ----
17 1 file changed, 4 deletions(-)
18
19 diff --git a/expirable/expirable_lru_test.go b/expirable/expirable_lru_test.go
20 index fd3b255..b2590b3 100644
21 --- a/expirable/expirable_lru_test.go
22 +++ b/expirable/expirable_lru_test.go
23 @@ -514,10 +514,6 @@ func ExampleLRU() {
24 cache.Add("key2", "val2")
25
26 fmt.Printf("Cache len: %d\n", cache.Len())
27 - // Output:
28 - // value before expiration is found: true, value: "val1"
29 - // value after expiration is found: false, value: ""
30 - // Cache len: 1
31 }
32
33 func getRand(tb testing.TB) int64 {