Replaces use of time.Sleep with time.Ticker in echovault and echovault tests

This commit is contained in:
Kelvin Clement Mwinuka
2024-06-02 17:34:20 +08:00
parent b7e691bbf1
commit bc6537ad8f
6 changed files with 601 additions and 569 deletions

View File

@@ -511,6 +511,7 @@ func TestEchoVault_CommandCount(t *testing.T) {
func TestEchoVault_Save(t *testing.T) {
conf := DefaultConfig()
conf.DataDir = path.Join(".", "testdata", "data")
conf.EvictionPolicy = constants.NoEviction
server := createEchoVaultWithConfig(conf)
tests := []struct {