Closed empijei closed 3 years ago
Currently running tests that use safehttp in parallel is impossible because Mux() writes to freezeLocalDev without locks:
Mux()
freezeLocalDev
https://github.com/google/go-safeweb/blob/697f59a9d57f76ec8631ac1d3181bbfd1ebaeb45/safehttp/mux.go#L171-L175
We should make this safe to use concurrently, together with IsLocalDev
IsLocalDev
Currently running tests that use safehttp in parallel is impossible because
Mux()
writes tofreezeLocalDev
without locks:https://github.com/google/go-safeweb/blob/697f59a9d57f76ec8631ac1d3181bbfd1ebaeb45/safehttp/mux.go#L171-L175
We should make this safe to use concurrently, together with
IsLocalDev