Commit cb80ccc
committed
fix(test): add catch-all handle_call clause to TestReduxProcess
Added a catch-all handle_call/3 clause to TestReduxProcess test module
to handle unsupported messages gracefully. The test was expecting the
process to crash when sending an invalid message, but the better pattern
is to return an error tuple.
Changes:
- Added catch-all handle_call/3 clause that returns {:error, {:unsupported_message, msg}}
- Updated test to expect error tuple instead of process crash
- Grouped all handle_call clauses together to satisfy Elixir's clause grouping requirement
This fixes the FunctionClauseError that was causing test failures in CI.1 parent 5177015 commit cb80ccc
1 file changed
+10
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
181 | 187 | | |
182 | 188 | | |
183 | 189 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 190 | + | |
| 191 | + | |
197 | 192 | | |
198 | | - | |
| 193 | + | |
| 194 | + | |
199 | 195 | | |
200 | 196 | | |
201 | 197 | | |
| |||
0 commit comments