From 84c13e6d42fe9c234a31280379373e8e3e677d5a Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 30 Jun 2016 13:47:10 +0800 Subject: [PATCH] add nil testing for memory. Signed-off-by: Bo-Yi Wu --- storage/memory/memory_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/storage/memory/memory_test.go b/storage/memory/memory_test.go index 491dfd7..7957177 100644 --- a/storage/memory/memory_test.go +++ b/storage/memory/memory_test.go @@ -10,6 +10,8 @@ func TestMemoryEngine(t *testing.T) { memory := New() + assert.Nil(t, memory.Init()) + memory.AddTotalCount(1) val = memory.GetTotalCount() assert.Equal(t, int64(1), val)