summaryrefslogtreecommitdiff
path: root/test/actor/actor.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/actor/actor.test.cpp')
-rw-r--r--test/actor/actor.test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/actor/actor.test.cpp b/test/actor/actor.test.cpp
index c2a41fe787..03eb9b8301 100644
--- a/test/actor/actor.test.cpp
+++ b/test/actor/actor.test.cpp
@@ -156,7 +156,7 @@ TEST(Actor, DestructionAllowedInReceiveOnSameThread) {
};
std::promise<void> callbackFiredPromise;
- auto retainer = Scheduler::GetBackground();
+ std::shared_ptr<Scheduler> retainer = Scheduler::GetBackground();
auto test = std::make_unique<Actor<Test>>(retainer);
// Callback (triggered while mutex is locked in Mailbox::receive())