Commit 6498031
committed
test(audience-sdk): centralise DiskStoreTests file body fixtures
DiskStoreTests had three inline file body fixtures used as
File.WriteAllText payloads:
- "{\"stale\":true}" — older-than-purge-window file in the
ApplyAnonymousDowngrade fixture
- "{\"survived\":true}" — non-stale file the same fixture must keep
- "{not valid json" — malformed file that exercises the
malformed-input branch
Adds StaleFileBody / SurvivingFileBody / MalformedFileBody file-local
consts at the top of the fixture (matching the existing test-fixture
const block convention) and migrates the three call sites.
Per the user's "everything random goes in a constant" stance.
Follow-up to SDK-272 (centralisation of duplicated literals).1 parent f7aa206 commit 6498031
1 file changed
Lines changed: 8 additions & 3 deletions
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
101 | | - | |
| 106 | + | |
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
| |||
152 | 157 | | |
153 | 158 | | |
154 | 159 | | |
155 | | - | |
| 160 | + | |
156 | 161 | | |
157 | 162 | | |
158 | 163 | | |
| |||
233 | 238 | | |
234 | 239 | | |
235 | 240 | | |
236 | | - | |
| 241 | + | |
237 | 242 | | |
238 | 243 | | |
239 | 244 | | |
| |||
0 commit comments