From 9278c18768a1cc69dc1493162f2be353088d2e6e Mon Sep 17 00:00:00 2001 From: sputn1ck Date: Tue, 23 May 2023 17:44:46 +0200 Subject: [PATCH] loopdb: add nil check to boltdb liquidity test This commit adds a nil check to the boltdb liquidity test. There was a difference between the sqlite and boltdb implementation. This test covers that. --- loopdb/store_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/loopdb/store_test.go b/loopdb/store_test.go index 35ae5e3..0b0b0bd 100644 --- a/loopdb/store_test.go +++ b/loopdb/store_test.go @@ -484,6 +484,7 @@ func TestLiquidityParams(t *testing.T) { params, err := store.FetchLiquidityParams(ctxb) require.NoError(t, err, "failed to fetch params") require.Empty(t, params, "expect empty bytes") + require.Nil(t, params) params = []byte("test")