Skip to content
Snippets Groups Projects
Commit b6580e37 authored by Brian Groenke's avatar Brian Groenke
Browse files

Remove broken flag on allocs test for TimeSeriesForcing

parent bda26a0f
No related branches found
No related tags found
1 merge request!57Add support for per-layer callbacks
...@@ -16,9 +16,7 @@ using Test, BenchmarkTools ...@@ -16,9 +16,7 @@ using Test, BenchmarkTools
@test forcing((Dates.datetime2epochms(t1) + Dates.datetime2epochms(t2))/2000.0) (y1+y2)/2 @test forcing((Dates.datetime2epochms(t1) + Dates.datetime2epochms(t2))/2000.0) (y1+y2)/2
t = Dates.datetime2epochms(t1)/1000.0 t = Dates.datetime2epochms(t1)/1000.0
benchres = @benchmark $forcing($t) benchres = @benchmark $forcing($t)
# This suddenly passes when run directly (in this file) but not when run as part of the test suite. @test benchres.allocs == 0
# Likely is a compiler bug or issue caused by recent update to a package (maybe BenchmarkTools?)
@test_broken benchres.allocs == 0
out = zeros(100) out = zeros(100)
queries = t .+ (1:100); queries = t .+ (1:100);
benchres = @benchmark $out .= $forcing.($queries) benchres = @benchmark $out .= $forcing.($queries)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment