Commit 5935ca0
committed
test: ensure removing old engine on setup (#5057)
**Which issue(s) this PR fixes**:
Continued from
* #5054
* #5055 (6cac9f0)
**What this PR does / why we need it**:
Each test should not consider the initialization of `Fluent::Engine`.
It should be the responsibility of `Fluent::Test.setup`.
Note: Set `nil` explicitly to ensure that GC can remove the objects,
though it is very strange that some objects can still exist after
`remove_const` and `GC.start`.
**Docs Changes**:
Not needed.
**Release Note**:
CI improvements.
Signed-off-by: Daijiro Fukuda <[email protected]>1 parent c301faa commit 5935ca0
File tree
3 files changed
+5
-6
lines changed- lib/fluent
- test
- plugin_helper
- plugin
3 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | 136 | | |
139 | 137 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
| |||
0 commit comments