Commit 077612b
committed
Fix checks in tests
The checks in the data sourcing actor were meant to check if the value
of the sample was `None`, not the sample itself (as the type system
guarantees that `sample` will never be `None`.
This issue wasn't detected because the `ChannelRegistry` used `Any` as
message type, so `sample` had type `Any`, which means that as far as
the type system is concerned, it could have been `None`.
Signed-off-by: Leandro Lucarella <[email protected]>1 parent 713e00e commit 077612b
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments