sigp/rust-libp2p

Fix gossipsub tests to use `LRUCache` api

Closed this issue · 2 comments

Description

Fix test_handle_ihave_subscribed_and_msg_cached in gossipsub tests to use put method of LRUCache over add method of previously used CuckooFilter.

Note: Test doesn't fail if msg_id doesn't exist in the received cache.

Yup, sorry. I was testing on interop.