diff options
author | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2022-02-09 13:25:55 +0300 |
---|---|---|
committer | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2022-02-09 13:25:55 +0300 |
commit | 7faf59b670da5fd78d2b95bc7663c74d0ac8523c (patch) | |
tree | be806cdbde065ff4f705d03f5f49bc0e2604e89f /tests | |
parent | e6e401cfc87ffa6b8224f1cc16c8469918d6d93f (diff) |
.......PS. [ZBX-20506] fixed tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mocks/configcache/configcache.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/mocks/configcache/configcache.c b/tests/mocks/configcache/configcache.c index 4319cca2f23..72bb792f822 100644 --- a/tests/mocks/configcache/configcache.c +++ b/tests/mocks/configcache/configcache.c @@ -45,6 +45,13 @@ void *__wrap_zbx_hashset_search(zbx_hashset_t *hs, const void *data) { int i; + if (&mock_config.dc.items == hs) + { + static ZBX_DC_ITEM item = {.hostid = 1}; + + return &item; + } + if (0 != (mock_config.initialized & ZBX_MOCK_CONFIG_USERMACROS)) { if (hs == &mock_config.dc.hmacros_hm) |