Skip to content

Commit 049b488

Browse files
authored
do not execute unreliable timing tests on mac (#131)
1 parent 94ddf62 commit 049b488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_express_opt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
state = 1im*X1Z2+2*Y2(Z1+X1)+StabilizerState("YX ZZ")
99
nocache = @timed express(state)
1010
withcache = @timed express(state)
11-
@test nocache.time > 10*withcache.time
11+
!Sys.isapple() && @test nocache.time > 10*withcache.time
1212
@test withcache.bytes == 0
1313
@test nocache.value withcache.value express(1im*X1Z2+2*Y2(Z1+X1)+StabilizerState("YX ZZ"))
1414

@@ -20,7 +20,7 @@
2020
express(state)
2121
nocache = @timed express(state2)
2222
withcache = @timed express(state2)
23-
@test nocache.time > 20*withcache.time
23+
!Sys.isapple() && @test nocache.time > 20*withcache.time
2424
@test withcache.bytes == 0
2525
@test nocache.value withcache.value express(state2)
2626

0 commit comments

Comments
 (0)