mirror of
https://github.com/moebooru/moebooru
synced 2025-08-29 13:07:41 +00:00
Less cross-test thread variable pollution.
This commit is contained in:
parent
af39d0718b
commit
2d6da991fe
@ -15,4 +15,14 @@ class ActiveSupport::TestCase
|
|||||||
t.rewind
|
t.rewind
|
||||||
t
|
t
|
||||||
end
|
end
|
||||||
|
|
||||||
|
setup :reset_thread_variables
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def reset_thread_variables
|
||||||
|
%w(danbooru-user danbooru-user_id).each do |x|
|
||||||
|
Thread.current[x] = nil
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user