diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-02-12 11:54:05 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-02-12 11:54:05 +0100 |
commit | b0f8b28977e59b7fbfc1ce57ee5c102b8e4e0690 (patch) | |
tree | 926eb8dbd140d84ab0238ce7d671673056f12f56 /tests/test-connectionregistry.cpp | |
parent | 7d5ca5cebfe3453aaa3c649bbc3e771e6d636ac9 (diff) |
Touch documents on read (i.e. reset timeout on read)
Diffstat (limited to 'tests/test-connectionregistry.cpp')
-rw-r--r-- | tests/test-connectionregistry.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-connectionregistry.cpp b/tests/test-connectionregistry.cpp index 282f397..dbc2b7e 100644 --- a/tests/test-connectionregistry.cpp +++ b/tests/test-connectionregistry.cpp @@ -114,14 +114,17 @@ TEST_F(ConnectionRegistryTest, test_iterators) EXPECT_THROW(cr.begin(""), std::exception); EXPECT_THROW(cr.end(""), std::exception); + EXPECT_EQ(std::distance(cr.begin(), cr.end()), 0); cr.addConnection(c); EXPECT_THROW(cr.begin(""), std::exception); EXPECT_THROW(cr.end(""), std::exception); + EXPECT_EQ(std::distance(cr.begin(), cr.end()), 1); cr.setId(c, "id1"); EXPECT_EQ(std::distance(cr.begin("id1"), cr.end("id1")), 1); + EXPECT_EQ(std::distance(cr.begin(), cr.end()), 1); } TEST_F(ConnectionRegistryTest, test_guard) |