mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-04 15:42:40 +08:00
Re-enabled cleanup of testdata folder after completing Test_AdminCommand suite
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user