Skip to content

Commit

Permalink
Fix 'invalid redefinition of constant tsk'
Browse files Browse the repository at this point in the history
when copy and socket tests run on same worker
  • Loading branch information
tkelman committed Jan 16, 2015
1 parent 0aa7277 commit a3485dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/copy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ mainres = ([4, 5, 3],
bitres = ([true, true, false],
[false, true, false])

tsk(x) = @task for i in x; produce(i); end
tskprod(x) = @task for i in x; produce(i); end

for (dest, src, bigsrc, emptysrc, res) in [
([1, 2, 3], () -> [4, 5], () -> [1, 2, 3, 4, 5], () -> Int[], mainres),
([1, 2, 3], () -> 4:5, () -> 1:5, () -> 1:0, mainres),
([1, 2, 3], () -> tsk(4:5), () -> tsk(1:5), () -> tsk(1:0), mainres),
([1, 2, 3], () -> tskprod(4:5), () -> tskprod(1:5), () -> tskprod(1:0), mainres),
(falses(3), () -> trues(2), () -> trues(5), () -> trues(0), bitres)]

@test copy!(copy(dest), src()) == res[1]
Expand Down

0 comments on commit a3485dd

Please sign in to comment.