test: add deadlock regression test for JSONHandler (issue #3) #7
Odkázat v novém úkolu
Zablokovat Uživatele
Smazat větev „:test/jsonhandler-deadlock“
Smazání větve je trvalé. Přestože zrušená větev může existovat i po krátkou dobu, než bude skutečně odstraněna, NELZE ji většinou vrátit. Pokračovat?
Adds a test that reproduces the deadlock described in #3.
The test spawns a goroutine that calls
slog.Info()withJSONHandlerset as the default handler, then waits 5 seconds for completion. On unfixed code this deadlocks; with the fix from #4 it passes.This can be merged independently or after #4.