Commit 85d4841
committed
test(audience-sdk): centralise publishable-key fixtures across transport, stress, and offline tests
Three test files had inline publishable-key fixtures with no
intra-test reason for diverging from the canonical
TestDefaults.PublishableKey:
- ThreadSafetyStressTests:48 used "pk_imapik-test-stress"
- OfflineResilienceTests:47 used "pk_imapik-test-key"
Both fall under "any test-prefix key, content does not matter".
Migrated to TestDefaults.PublishableKey.
HttpTransportTests:162 used "pk_imapik-prodkey" specifically to
verify a non-test-prefix key resolves to ProductionBaseUrl. The
test cannot use TestDefaults.PublishableKey since that one IS
test-prefixed. Added a file-local ProdPublishableKey const
alongside the existing response-body fixtures and migrated the
one usage. The const carries a comment explaining the prefix
constraint.
Per the user's "everything random goes in a constant" stance.
Follow-up to SDK-272 (centralisation of duplicated literals).1 parent ddd9d77 commit 85d4841
3 files changed
Lines changed: 6 additions & 3 deletions
File tree
- src/Packages/Audience/Tests/Runtime
- Transport
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
159 | | - | |
| 162 | + | |
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
| |||
0 commit comments