1
0
mirror of https://github.com/libp2p/go-libp2p-core.git synced 2025-03-31 13:30:06 +08:00

moved test into own test func

This commit is contained in:
Mantas Vidutis 2019-05-31 11:34:20 -07:00
parent 3a0767210a
commit bb3a342c83

View File

@ -75,7 +75,10 @@ func TestRegisteringViews(t *testing.T) {
t.Fatal("incorrect view lookup, received name:", views[0].Name)
}
})
}
func TestAllViews(t *testing.T) {
registeredViews = make(map[string][]*view.View)
t.Run("test retrieving all views", func(t *testing.T) {
views := []*view.View{newTestView("all-views-0"), newTestView("all-views-1"), newTestView("all-views-2")}