Skip to content

Commit eff1abf

Browse files
authored
Merge pull request #1 from staticfloat/patch-2
Fix test invocations
2 parents 84cd9ad + 138e052 commit eff1abf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/independentlylinearizedtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,20 @@ display(@benchmark sample(ils, many_ts))
9999
# Muck with the `ilsc` here to explore some failure options
100100
# Error: timepoints longer than time_matrix
101101
ilsc.t_offset += 1
102-
@test_throws ArgumentError finish!(ils)
102+
@test_throws ArgumentError finish!(ils, ReturnCode.Default)
103103
ilsc.t_offset -= 1
104104

105105
# Error: time matrix row two has N elements, but `us` has N+1
106106
ilsc.u_offsets[2] += 1
107-
@test_throws ArgumentError finish!(ils)
107+
@test_throws ArgumentError finish!(ils, ReturnCode.Default)
108108
ilsc.u_offsets[2] -= 1
109109

110110
# Error: one of our time masks doesn't start with `1`
111111
ilsc.time_masks[1][1, 1] = 0
112-
@test_throws ArgumentError finish!(ils)
112+
@test_throws ArgumentError finish!(ils, ReturnCode.Default)
113113
ilsc.time_masks[1][1, 1] = 1
114114

115-
finish!(ils)
115+
finish!(ils, ReturnCode.Default)
116116
@test sample(ils, ils.ts) == repeat(1:num_timepoints, 1, num_us)
117117
@test sample(ils, ils.ts, 1) == 2*repeat(1:num_timepoints, 1, num_us)
118118
end

0 commit comments

Comments
 (0)