Skip to content

Commit

Permalink
Merge branch 'fix-timeouts-when-pushing-logs'
Browse files Browse the repository at this point in the history
  • Loading branch information
peburrows committed Oct 24, 2024
2 parents e60a25c + f98ded6 commit 3a44fbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/statsig_ex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ defmodule StatsigEx do
def handle_call({:log, event}, _from, state),
do: {:reply, :ok, Map.put(state, :events, [event | state.events])}

def handle_info({:log, event}, state),
def handle_cast({:log, event}, state),
do: {:noreply, Map.put(state, :events, [event | state.events])}

def handle_info(
Expand Down
2 changes: 2 additions & 0 deletions test/support/test_generator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ defmodule StatsigEx.TestGenerator do

case unquote(type) do
:gate ->
# maybe give us some time to actually spit out logs?
StatsigEx.check_gate(unquote(Macro.escape(user)), unquote(name), :test)
assert unquote(Macro.escape(expected)) == result.result

_ ->
Expand Down

0 comments on commit 3a44fbd

Please sign in to comment.