Re-enabled cleanup of testdata folder after completing Test_AdminCommand suite

This commit is contained in:
Kelvin Clement Mwinuka
2024-05-08 23:54:31 +08:00
parent c5c1487799
commit ba48a517e4
2 changed files with 149 additions and 148 deletions

View File

@@ -34,6 +34,7 @@ import (
str "github.com/echovault/echovault/internal/modules/string"
"github.com/tidwall/resp"
"net"
"os"
"reflect"
"slices"
"strings"
@@ -90,9 +91,9 @@ func getHandlerFuncParams(ctx context.Context, mockServer *echovault.EchoVault,
}
func Test_AdminCommand(t *testing.T) {
// t.Cleanup(func() {
// _ = os.RemoveAll("./testdata")
// })
t.Cleanup(func() {
_ = os.RemoveAll("./testdata")
})
t.Run("Test COMMANDS command", func(t *testing.T) {
t.Parallel()