This repository was archived by the owner on Jun 2, 2021. It is now read-only.
Commit 8d1e1bf
committed
v3: Run usage event-purging specs in isolation: truncation mode
When we added these tests recently, we started seeing lots of random
other failures in CI when run against MySQL. It seemed to be a test
pollution issue (other tests were seeing DB entries they didn't expect,
or were missing DB entries that they did expect).
After talking to the CAPI team, we learned that the table truncation
performed by these new endpoints may change the mode that tests are run
in. Usually, they are run in a transaction that gets rolled back
automatically, so we avoid pollution. But this truncation may change
that.
To fix it, we are attempting here to run these new truncating tests with
`isolation: :truncation`, to keep them better isolated and avoid test
pollution.
Authored-by: Reid Mitchell <rmitchell@pivotal.io>1 parent 51b0fd7 commit 8d1e1bf
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
0 commit comments