Fix mocking to support multiple overrides
authorAndrii Grynenko <andrii@fb.com>
Mon, 18 Jul 2016 20:26:59 +0000 (13:26 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Mon, 18 Jul 2016 20:38:24 +0000 (13:38 -0700)
commit46763a64f652c6218d253fb4307a9722587187e2
tree617fe880a687208d9061fccaa5aedfa500ff06b9
parent71b5c88168380fc8c93683bd153e16d34e654e8c
Fix mocking to support multiple overrides

Summary: When installing the mock, we should make sure to remove singleton from the creation_order list.

Differential Revision: D3580725

fbshipit-source-id: dfb489de1be860ab639380644eab0b45a07a1450
folly/Singleton-inl.h
folly/test/SingletonTest.cpp