Skip to content

Commit b96a9b2

Browse files
committed
fix ci
1 parent 26569a0 commit b96a9b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/common.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ end
4545
@test length(t) == 1
4646

4747
# this will trigger the scalar indexing of CuArray
48-
@test_broken t[1] == (
48+
CUDA.@allowscalar @test t[1] == (
4949
state=ones(Float32, 2, 3),
5050
next_state=ones(Float32, 2, 3) * 2,
5151
action=ones(Float32, 2),
@@ -70,15 +70,15 @@ end
7070
@test length(t) == 3
7171

7272
# this will trigger the scalar indexing of CuArray
73-
@test_broken t[1] == (
73+
CUDA.@allowscalar @test t[1] == (
7474
state=ones(Float32, 2, 3) * 2,
7575
next_state=ones(Float32, 2, 3) * 3,
7676
action=ones(Float32, 2) * 2,
7777
next_action=ones(Float32, 2) * 3,
7878
reward=2.0f0,
7979
terminal=false,
8080
)
81-
@test_broken t[end] == (
81+
CUDA.@allowscalar @test t[end] == (
8282
state=ones(Float32, 2, 3) * 4,
8383
next_state=ones(Float32, 2, 3) * 5,
8484
action=ones(Float32, 2) * 4,

0 commit comments

Comments
 (0)