Commit b0d5bf5
Don't mock random ids in test
Summary: This test started failing because new code paths called randomId() more often than expected, since we mock randomId like 5 times. This is super fragile. The better way is to just find whatever ID the request was made with and have the tests make sure the matching ID is sent, which is what we're actually testing.
Reviewed By: quark-zju
Differential Revision: D75693282
fbshipit-source-id: affb8920d32e5b795ba8137e3557ca9e915e25e41 parent 0650c24 commit b0d5bf5
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
0 commit comments