add nil testing for memory.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
c14eda6d3d
commit
84c13e6d42
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue