diff options
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/thread/thread_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vespalib/src/tests/thread/thread_test.cpp b/vespalib/src/tests/thread/thread_test.cpp index 38abf810354..ee4f97c34cc 100644 --- a/vespalib/src/tests/thread/thread_test.cpp +++ b/vespalib/src/tests/thread/thread_test.cpp @@ -6,7 +6,7 @@ using namespace vespalib; -VESPA_THREAD_STACK_TAG(test_agent_executor); +VESPA_THREAD_STACK_TAG(test_agent_thread); struct Agent : public Runnable { bool started; @@ -24,7 +24,7 @@ struct Agent : public Runnable { TEST("thread never started") { Agent agent; { - Thread thread(agent, test_agent_executor); + Thread thread(agent, test_agent_thread); } EXPECT_TRUE(!agent.started); EXPECT_EQUAL(0, agent.loopCnt); @@ -33,7 +33,7 @@ TEST("thread never started") { TEST("normal operation") { Agent agent; { - Thread thread(agent, test_agent_executor); + Thread thread(agent, test_agent_thread); thread.start(); std::this_thread::sleep_for(20ms); thread.stop().join(); @@ -45,7 +45,7 @@ TEST("normal operation") { TEST("stop before start") { Agent agent; { - Thread thread(agent, test_agent_executor); + Thread thread(agent, test_agent_thread); thread.stop(); thread.start(); thread.join(); |