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:
osteensco
2024-10-03 21:14:12 -05:00
committed by GitHub
parent 241badf023
commit ff96d45b76
13 changed files with 6211 additions and 5772 deletions

View File

@@ -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 {