Skip to content

Commit

Permalink
remove update_storage, fix runtest.jl that include doesn't fail the s…
Browse files Browse the repository at this point in the history
…econd run
  • Loading branch information
hhaensel committed Nov 28, 2024
1 parent 9322e93 commit a546b76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/ReactiveTools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -355,15 +355,6 @@ macro clear_debounce()
:(Stipple.debounce(Stipple.@type(), nothing)) |> esc
end

function update_storage(m::Module)
clear_type(m)
# isempty(Stipple.Pages._pages) && return
# instance = @eval m Stipple.@type()
# for p in Stipple.Pages._pages
# p.context == m && (p.model = instance)
# end
end

import Stipple: @vars

macro vars(expr)
Expand Down
5 changes: 5 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ end
s1 = string_get("http://localhost:$port/")
s2 = string_get("http://localhost:$port/")
s3 = string_get("http://localhost:$port/", cookies = false)
# execute without cookies twice due to strange behavior of the first request
# - only observed when running include("test/runtests.jl") in the REPL twice
s3 = string_get("http://localhost:$port/", cookies = false)

s4 = string_get("http://localhost:$port/static")
s5 = string_get("http://localhost:$port/static")
Expand Down Expand Up @@ -371,6 +374,8 @@ end
s1 = string_get("http://localhost:$port/")
s2 = string_get("http://localhost:$port/")
s3 = string_get("http://localhost:$port/", cookies = false)
# execute twice, see above
s3 = string_get("http://localhost:$port/", cookies = false)

s4 = string_get("http://localhost:$port/static")
s5 = string_get("http://localhost:$port/static")
Expand Down

0 comments on commit a546b76

Please sign in to comment.