fix collection breaker (#537)

* fix collection breaker

* optimized

* optimized

* optimized
This commit is contained in:
kingxt
2021-03-03 10:44:29 +08:00
committed by GitHub
parent f01472c9ea
commit a25cba5380
3 changed files with 7 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ func TestNewCollection(t *testing.T) {
Database: nil,
Name: "foo",
FullName: "bar",
})
}, breaker.GetBreaker("localhost"))
assert.Equal(t, "bar", col.(*decoratedCollection).name)
}