📦 postgres

Co-Authored-By: Alireza Salary <arsmn1996@gmail.com>
This commit is contained in:
Fenny
2020-11-01 12:25:26 +01:00
parent 127aa2a67d
commit dd72caf629
9 changed files with 230 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ func Test_New(t *testing.T) {
func Test_Get_Set(t *testing.T) {
s := New(Config{
FilePath: ":memory:",
Database: ":memory:",
})
err := s.Set("fiber-10k-stars?", []byte("yes!"), time.Duration(time.Hour*1))
utils.AssertEqual(t, nil, err)
@@ -26,7 +26,7 @@ func Test_Get_Set(t *testing.T) {
func Test_Expiration(t *testing.T) {
s := New(Config{
FilePath: ":memory:",
Database: ":memory:",
})
err := s.Set("fiber-20k-stars?", []byte("yes!"), time.Duration(time.Nanosecond/2))