Add timeout queue stress test 99/251399/5
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 12 Jan 2021 11:37:18 +0000 (12:37 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 15 Jan 2021 11:23:56 +0000 (12:23 +0100)
commit458c2cbe8bff78708bcc27ece4c79b7714037cd3
tree4f84a4d676ece220e40e39941ea27c9ce2ad20df
parenta4a287706e4b1b32eb86d87c61f2a698e67d10d1
Add timeout queue stress test

While one socket connection is active and its timeout not reached yet,
we can open and close many new connections, which will push items on
SocketManager::m_timeoutQueue. Because first socket has an earliest
timeout, the second connection elements won't be touched. Because
m_timeoutQueue elements are not removed on socket close, the queue will
grow. Still nothing bad should happen.

Change-Id: Ied20d2e1517ad471e465c6fa601e368469a4cc37
src/manager/main/socket-manager.cpp
unit-tests/CMakeLists.txt
unit-tests/test_socket-manager.cpp [new file with mode: 0644]