mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-06 00:16:53 +08:00
Use memory footprint of sugardb.store to compare against max memory for eviction policies (#133)
Improved memory usage reporting. - @osteensco
This commit is contained in:
@@ -392,6 +392,7 @@ func Test_AdminCommands(t *testing.T) {
|
||||
respConn := resp.NewConn(conn)
|
||||
|
||||
for i := 0; i < len(tests); i++ {
|
||||
t.Log(tests[i].name)
|
||||
if len(tests[i].wantExecRes) > 0 {
|
||||
// If the length of execCommand is > 0, write the command to the connection.
|
||||
if err := respConn.WriteArray(tests[i].execCommand); err != nil {
|
||||
|
Reference in New Issue
Block a user