Commit d55e3fc
authored
Expose
The `riverdbtest.TestSchema` function has had an internal `disableReuse`
option for quite some time that prevents the test schema from being
checked back in at the end of a test case. This is useful in cases where
a schema might be modified and not suitable for pick up by a subsequent
test.
I was just testing some schema-related changes in Pro and found that it
would be somewhat useful to be able to use this option from that
package. We can also create our own test schemas from scratch over
there, but `riverdbtest.TestSchema` has a number of niceties like being
able to clean up test schemas even in the event of a panic and where
cleanup hooks aren't run.
I don't think there's any particularly harmful effect in exposing
`DisableReuse` (except that it might encourage more of its use), so it's
probably okay.TestSchemaOpts.DisableReuse for test schema creation (#1195)1 parent a43c9c6 commit d55e3fc
1 file changed
Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
56 | 65 | | |
| |||
81 | 90 | | |
82 | 91 | | |
83 | 92 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
279 | 283 | | |
280 | 284 | | |
281 | 285 | | |
282 | | - | |
| 286 | + | |
283 | 287 | | |
284 | 288 | | |
285 | 289 | | |
| |||
638 | 642 | | |
639 | 643 | | |
640 | 644 | | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
647 | 648 | | |
648 | 649 | | |
649 | | - | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
650 | 654 | | |
651 | 655 | | |
652 | 656 | | |
| |||
0 commit comments