Skip to content

Commit

Permalink
remove extraneous dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Jun 28, 2024
1 parent 6b33520 commit e867a9b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
1 change: 0 additions & 1 deletion contrib/screener-api/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,6 @@ gorm.io/driver/sqlite v1.5.6/go.mod h1:U+J8craQU6Fzkcvu8oLeAQmi50TkwPEhHDEjQZXDa
gorm.io/gorm v1.25.7/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8=
gorm.io/gorm v1.25.10 h1:dQpO+33KalOA+aFYGlK+EfxcI5MbO7EP2yYygwh9h+s=
gorm.io/gorm v1.25.10/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8=
gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
gotest.tools/v3 v3.5.0 h1:Ljk6PdHdOhAb5aDMWXjDLMMhph+BpztA4v1QdqEW2eY=
gotest.tools/v3 v3.5.0/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
Expand Down
1 change: 0 additions & 1 deletion core/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ require (
golang.org/x/sync v0.7.0
gorm.io/driver/sqlite v1.5.6
gorm.io/gorm v1.25.10
gotest.tools v2.2.0+incompatible
k8s.io/apimachinery v0.29.3
)

Expand Down
2 changes: 0 additions & 2 deletions core/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -968,8 +968,6 @@ gorm.io/driver/sqlite v1.5.6 h1:fO/X46qn5NUEEOZtnjJRWRzZMe8nqJiQ9E+0hi+hKQE=
gorm.io/driver/sqlite v1.5.6/go.mod h1:U+J8craQU6Fzkcvu8oLeAQmi50TkwPEhHDEjQZXDah4=
gorm.io/gorm v1.25.10 h1:dQpO+33KalOA+aFYGlK+EfxcI5MbO7EP2yYygwh9h+s=
gorm.io/gorm v1.25.10/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8=
gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
gotest.tools/v3 v3.5.0 h1:Ljk6PdHdOhAb5aDMWXjDLMMhph+BpztA4v1QdqEW2eY=
gotest.tools/v3 v3.5.0/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
Expand Down
13 changes: 6 additions & 7 deletions core/mapmutex/mapmutex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/ethereum/go-ethereum/common"
. "github.com/stretchr/testify/assert"
"github.com/synapsecns/sanguine/core/mapmutex"
"gotest.tools/assert"
)

// ExampleMapMutex provides an example implementation of a map mutex.
Expand Down Expand Up @@ -57,21 +56,21 @@ func (s MapMutexSuite) TestKeys() {
s.T().Run("StringMapMutexKeys", func(t *testing.T) {
mapMutex := mapmutex.NewStringMapMutex()
mapMutex.Lock("lock1")
assert.Equal(t, "lock1", mapMutex.Keys()[0])
assert.Equal(t, 1, len(mapMutex.Keys()))
Equal(t, "lock1", mapMutex.Keys()[0])
Equal(t, 1, len(mapMutex.Keys()))
})
s.T().Run("StringerMapMutexKeys", func(t *testing.T) {
mapMutex := mapmutex.NewStringerMapMutex()
vitalik := common.HexToAddress("0xab5801a7d398351b8be11c439e05c5b3259aec9b")
mapMutex.Lock(vitalik)
assert.Equal(t, vitalik.String(), mapMutex.Keys()[0])
assert.Equal(t, 1, len(mapMutex.Keys()))
Equal(t, vitalik.String(), mapMutex.Keys()[0])
Equal(t, 1, len(mapMutex.Keys()))
})
s.T().Run("IntMapMutexKeys", func(t *testing.T) {
mapMutex := mapmutex.NewIntMapMutex()
mapMutex.Lock(1)
assert.Equal(t, 1, mapMutex.Keys()[0])
assert.Equal(t, 1, len(mapMutex.Keys()))
Equal(t, 1, mapMutex.Keys()[0])
Equal(t, 1, len(mapMutex.Keys()))
})
}

Expand Down

0 comments on commit e867a9b

Please sign in to comment.