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:
parent
3a0767210a
commit
bb3a342c83
@ -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")}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user