From 1041519012967c7c8575051953ce01d402b50bfb Mon Sep 17 00:00:00 2001
From: Simon Christ <christ@cell.uni-hannover.de>
Date: Fri, 3 May 2024 16:44:09 +0200
Subject: [PATCH] fix tests

---
 src/handler/state.jl | 2 +-
 test/callbacks.jl    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/handler/state.jl b/src/handler/state.jl
index d05d172..20d1d32 100644
--- a/src/handler/state.jl
+++ b/src/handler/state.jl
@@ -36,7 +36,7 @@ function _dependencies_json(app::DashApp)
             output = output_string(callback.dependencies),
             clientside_function = _dep_clientside_func(callback.func),
             prevent_initial_call = callback.prevent_initial_call,
-            long = callback.long && (interval = callback.interval)
+            long = callback.long !== false && (interval = callback.long[:interval],)
         )
     end
     return JSON3.write(result)
diff --git a/test/callbacks.jl b/test/callbacks.jl
index e71f3a5..70952b2 100644
--- a/test/callbacks.jl
+++ b/test/callbacks.jl
@@ -674,5 +674,5 @@ end
     request = HTTP.Request("GET", "/_dash-dependencies")
     resp = Dash.HttpHelpers.handle(handler, request)
     deps = JSON3.read(String(resp.body))
-    @test deps[1].long
+    @test deps[1].long.interval == 1000
 end
\ No newline at end of file