1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-25 01:30:19 +00:00

Merge pull request #3274 from gombaniro/improvement/make-TestSet-on-map-self-contained

breaks dependency on TestNewBeeMap Testcase
This commit is contained in:
astaxie
2018-08-07 10:02:29 +08:00
committed by GitHub

View File

@ -26,6 +26,7 @@ func TestNewBeeMap(t *testing.T) {
} }
func TestSet(t *testing.T) { func TestSet(t *testing.T) {
safeMap = NewBeeMap()
if ok := safeMap.Set("astaxie", 1); !ok { if ok := safeMap.Set("astaxie", 1); !ok {
t.Error("expected", true, "got", false) t.Error("expected", true, "got", false)
} }