Commit 00ffdce
authored
chore: Make tests faster (#5600)
**Story card:**
[sc-15268](https://app.shortcut.com/simpledotorg/story/15268/versioning-adopt-semantic-versioning)
## Because
CI takes 1 hour to build
## This addresses
Optimizing matview refreshes during unit tests
Ensure `refresh_views` can refresh specific views.
Originally, this refreshed all the mat views which — for some tests
— may be a recipe for wasting time. It's this query that's in focus for
this change. There are other places where `refresh_views` is used, but
those do not seem to run slow.
## Test instructions
suite tests1 parent 1adaf36 commit 00ffdce
File tree
2 files changed
+11
-3
lines changed- spec
- queries/patient_states/diabetes
2 files changed
+11
-3
lines changedLines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments