From 99d752217f2075722a7efcf887ca23ece42da742 Mon Sep 17 00:00:00 2001 From: Matt Wala <wala1@illinois.edu> Date: Sat, 23 Sep 2017 17:34:55 -0500 Subject: [PATCH] Do two lookups in the test to exercise the cache. --- test/test_persistent_dict.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_persistent_dict.py b/test/test_persistent_dict.py index b8954b4..61338d2 100644 --- a/test/test_persistent_dict.py +++ b/test/test_persistent_dict.py @@ -187,6 +187,8 @@ def test_write_once_persistent_dict_storage_and_lookup(in_mem_cache_size): # check lookup pdict[0] = 1 assert pdict[0] == 1 + # do two lookups to test the cache + assert pdict[0] == 1 # check updating with pytest.raises(ReadOnlyEntryError): -- GitLab