Repository navigation
Commit 300979e
Test: give lab 3's unreliable case a burst a slow run keeps (#289)
Lab 3 refuses past 40 queries in a wall-clock second. The unreliable
case scanned the lab's own 30 words, about 60 queries, which a loaded
machine can spread over two seconds and so stay under the limit, making
the verdict degraded instead.
The case now scans lab 3 with 150 names, about 300 queries: more than a
fifth are refused unless the run takes over 6 s, and the run stays
under the reliability guard's 200 lookups, so it is not aborted. The
paced case still uses the lab's words.
Verified: the test passes 10 times in a row, and go test ./... -count=1
passed five times in a row beside a second copy of the suite (the
background copy also passed).
Fixes #289
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 3e0ed5b commit 300979e
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
103 | 116 | | |
104 | 117 | | |
| 118 | + | |
105 | 119 | | |
106 | 120 | | |
107 | 121 | | |
108 | 122 | | |
109 | | - | |
| 123 | + | |
110 | 124 | | |
111 | 125 | | |
112 | 126 | | |
113 | 127 | | |
114 | 128 | | |
115 | | - | |
| 129 | + | |
| 130 | + | |
116 | 131 | | |
117 | 132 | | |
118 | 133 | | |
| |||
0 commit comments