From 791e76bcf05671abe7915b0d2eabe08bdf666ea8 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Sun, 28 Feb 2021 23:53:58 +0800 Subject: [PATCH] fix broken build (#528) --- core/stores/mongoc/cachedcollection_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/stores/mongoc/cachedcollection_test.go b/core/stores/mongoc/cachedcollection_test.go index d5ea530b..a1337cb7 100644 --- a/core/stores/mongoc/cachedcollection_test.go +++ b/core/stores/mongoc/cachedcollection_test.go @@ -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 @@ -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 @@ -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