diff --git a/memcache/go.mod b/memcache/go.mod index c38227b7..286920a8 100644 --- a/memcache/go.mod +++ b/memcache/go.mod @@ -4,13 +4,11 @@ go 1.19 require ( github.com/bradfitz/gomemcache v0.0.0-20221031212613-62deef7fc822 - github.com/gofiber/utils/v2 v2.0.0-beta.3 github.com/stretchr/testify v1.8.4 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/google/uuid v1.3.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/memcache/go.sum b/memcache/go.sum index 3b3a6aa3..b5cd6e85 100644 --- a/memcache/go.sum +++ b/memcache/go.sum @@ -2,10 +2,6 @@ github.com/bradfitz/gomemcache v0.0.0-20221031212613-62deef7fc822 h1:hjXJeBcAMS1 github.com/bradfitz/gomemcache v0.0.0-20221031212613-62deef7fc822/go.mod h1:H0wQNHz2YrLsuXOZozoeDmnHXkNCRmMW0gwFWDfEZDA= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/gofiber/utils/v2 v2.0.0-beta.3 h1:pfOhUDDVjBJpkWv6C5jaDyYLvpui7zQ97zpyFFsUOKw= -github.com/gofiber/utils/v2 v2.0.0-beta.3/go.mod h1:jsl17+MsKfwJjM3ONCE9Rzji/j8XNbwjhUVTjzgfDCo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= diff --git a/memcache/memcache.go b/memcache/memcache.go index 3fdd66c0..df86809e 100644 --- a/memcache/memcache.go +++ b/memcache/memcache.go @@ -6,7 +6,6 @@ import ( "time" mc "github.com/bradfitz/gomemcache/memcache" - "github.com/gofiber/utils/v2" ) // Storage interface that is implemented by storage providers @@ -21,7 +20,7 @@ func New(config ...Config) *Storage { cfg := configDefault(config...) // Split comma separated servers into slice - serverList := strings.Split(utils.Trim(cfg.Servers, ' '), ",") + serverList := strings.Split(strings.Trim(cfg.Servers, ' '), ",") // Create db db := mc.New(serverList...) diff --git a/memory/internal/time_test.go b/memory/internal/time_test.go index 918c2191..b8236123 100644 --- a/memory/internal/time_test.go +++ b/memory/internal/time_test.go @@ -5,12 +5,12 @@ import ( "testing" "time" - "github.com/gofiber/utils/v2" + "github.com/stretchr/testify/require" ) func checkTimeStamp(t testing.TB, expectedCurrent, actualCurrent uint32) { // test with some buffer in front and back of the expectedCurrent time -> because of the timing on the work machine - utils.AssertEqual(t, true, actualCurrent >= expectedCurrent-1 || actualCurrent <= expectedCurrent+1) + require.True(t, actualCurrent >= expectedCurrent-1 || actualCurrent <= expectedCurrent+1) } func Test_TimeStampUpdater(t *testing.T) {