Skip to content

Commit

Permalink
fix broken build (zeromicro#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Feb 28, 2021
1 parent c566b5f commit 791e76b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/stores/mongoc/cachedcollection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func TestStat(t *testing.T) {
defer clean()

cach := cache.NewNode(r, sharedCalls, stats, mgo.ErrNotFound)
c := newCollection(dummyConn{}, cach)
c := newCollection(dummyConn{}, cach).(*cachedCollection)

for i := 0; i < 10; i++ {
var str string
Expand Down Expand Up @@ -143,7 +143,7 @@ func TestStatDbFails(t *testing.T) {
defer clean()

cach := cache.NewNode(r, sharedCalls, stats, mgo.ErrNotFound)
c := newCollection(dummyConn{}, cach)
c := newCollection(dummyConn{}, cach).(*cachedCollection)

for i := 0; i < 20; i++ {
var str string
Expand All @@ -165,7 +165,7 @@ func TestStatFromMemory(t *testing.T) {
defer clean()

cach := cache.NewNode(r, sharedCalls, stats, mgo.ErrNotFound)
c := newCollection(dummyConn{}, cach)
c := newCollection(dummyConn{}, cach).(*cachedCollection)

var all sync.WaitGroup
var wait sync.WaitGroup
Expand Down

0 comments on commit 791e76b

Please sign in to comment.