diff --git a/test/fitting/test-cache.jl b/test/fitting/test-cache.jl index 92f3f1dd..885d8cb7 100644 --- a/test/fitting/test-cache.jl +++ b/test/fitting/test-cache.jl @@ -4,7 +4,7 @@ using SpectralFitting, Test dummy_data = make_dummy_dataset((E) -> (E^(-3.0)); units = u"counts / (s * keV)") # test that both julia and xspec implementations can fit simple -model = PhotoelectricAbsorption() * PowerLaw() +model = PhotoelectricAbsorption() * PowerLaw() + PowerLaw() + PowerLaw() config = SpectralFitting.FittingConfig(model, dummy_data) @@ -16,4 +16,4 @@ result = f(domain, params) # todo: currently we still allocate cus extracting the frozen parameters # has a dynamic allocation allocated_bytes = @allocated f(domain, params) -@test allocated_bytes < 400 +@test allocated_bytes == 0