with-redefs alterando valores permanentemente #17
wandersoncferreira
started this conversation in
Geral
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Um tempo atrás eu fiz um experimento rodando testes em paralelo em uma aplicação, porém recebi diversos erros. Após investigar, notei que o app utilizava
with-redefs
para mock da mesma variável em vários testes.Encontrei isso na documentação do
with-redefs
:Isso me chocou bastante na hora. Faz um certo sentido quando você entende que o
with-redefs
não é thread-safe, mas eu fui pego de surpresa.Beta Was this translation helpful? Give feedback.
All reactions