mirror of
https://github.com/gofiber/storage.git
synced 2025-10-24 17:00:28 +08:00
Updated replace in go mod, updated Expiration test
This commit is contained in:
@@ -2,6 +2,8 @@ module github.com/gofiber/storage/scylladb
|
||||
|
||||
go 1.20
|
||||
|
||||
replace github.com/gocql/gocql => github.com/scylladb/gocql v1.11.1
|
||||
|
||||
require (
|
||||
github.com/gocql/gocql v1.6.0
|
||||
github.com/stretchr/testify v1.3.0
|
||||
@@ -14,5 +16,3 @@ require (
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
gopkg.in/inf.v0 v0.9.1 // indirect
|
||||
)
|
||||
|
||||
replace github.com/gocql/gocql => github.com/scylladb/gocql v1.11.1
|
||||
|
||||
@@ -55,7 +55,11 @@ func Test_Scylla_Set_Expiration(t *testing.T) {
|
||||
err := testStore.Set(key, val, exp)
|
||||
require.NoError(t, err)
|
||||
|
||||
time.Sleep(1100 * time.Millisecond)
|
||||
time.Sleep(1500 * time.Millisecond)
|
||||
|
||||
result, err := testStore.Get(key)
|
||||
require.NoError(t, err)
|
||||
require.Empty(t, result)
|
||||
}
|
||||
|
||||
func Test_Scylla_Get_NotExist(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user