From 70ec9a1767ad8599e7aaecd24fa43f642058166d Mon Sep 17 00:00:00 2001 From: codchen Date: Fri, 17 Nov 2023 11:36:31 +0800 Subject: [PATCH] add test --- store/cachekv/store_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/store/cachekv/store_test.go b/store/cachekv/store_test.go index 3a6d5ab53..65c3f4eaa 100644 --- a/store/cachekv/store_test.go +++ b/store/cachekv/store_test.go @@ -62,6 +62,9 @@ func TestCacheKVStore(t *testing.T) { st.Write() require.Empty(t, st.Get(keyFmt(1)), "Expected `key1` to be empty") require.Empty(t, mem.Get(keyFmt(1)), "Expected `key1` to be empty") + + // GetParent returns parent store + require.NotNil(t, st.GetParent()) } func TestCacheKVStoreNoNilSet(t *testing.T) {