Skip to content

Commit ada7e0c

Browse files
committed
Simplify test
1 parent 1909958 commit ada7e0c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/copyable_task.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,7 @@
225225
# Test calling a function that does something with the return value of `produce`.
226226
# In this case it just returns it. This used to error, see
227227
# https://github.com/TuringLang/Libtask.jl/issues/190.
228-
produce_wrapper(x) = Libtask.produce(x)
229-
Libtask.might_produce(::Type{<:Tuple{typeof(produce_wrapper),Any}}) = true
230-
f(obs) = produce_wrapper(obs)
228+
f(obs) = produce(obs)
231229
tt = Libtask.TapedTask(nothing, f, :a)
232230
@test Libtask.consume(tt) === :a
233231
@test Libtask.consume(tt) === nothing

0 commit comments

Comments
 (0)