Skip to content

Commit 1041519

Browse files
fix tests
1 parent 29534f0 commit 1041519

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/handler/state.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function _dependencies_json(app::DashApp)
3636
output = output_string(callback.dependencies),
3737
clientside_function = _dep_clientside_func(callback.func),
3838
prevent_initial_call = callback.prevent_initial_call,
39-
long = callback.long && (interval = callback.interval)
39+
long = callback.long !== false && (interval = callback.long[:interval],)
4040
)
4141
end
4242
return JSON3.write(result)

test/callbacks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,5 +674,5 @@ end
674674
request = HTTP.Request("GET", "/_dash-dependencies")
675675
resp = Dash.HttpHelpers.handle(handler, request)
676676
deps = JSON3.read(String(resp.body))
677-
@test deps[1].long
677+
@test deps[1].long.interval == 1000
678678
end

0 commit comments

Comments
 (0)