🎁 fix tests

This commit is contained in:
Fenny
2020-11-05 05:26:05 +01:00
parent 687d8ed82a
commit f047848660
11 changed files with 19 additions and 29 deletions

View File

@@ -45,14 +45,13 @@ func Test_Postgres_Set_Expiration(t *testing.T) {
var (
key = "john"
val = []byte("doe")
exp = 500 * time.Millisecond
exp = 1 * time.Second
)
err := testStore.(key, val, exp)
err := testStore.Set(key, val, exp)
utils.AssertEqual(t, nil, err)
time.Sleep(1 * time.Second)
time.Sleep(1100 * time.Millisecond)
}
func Test_Postgres_Get_Expired(t *testing.T) {