Add error checking to hive test

This commit is contained in:
Balint Gabor 2018-01-11 12:19:00 +01:00
parent a21d3399fc
commit e091310e95

View file

@ -43,7 +43,7 @@ func TestRegisterAndConnect(t *testing.T) {
pp.Start(s.Server) pp.Start(s.Server)
defer pp.Stop() defer pp.Stop()
// retrieve and broadcast // retrieve and broadcast
s.TestExchanges(p2ptest.Exchange{ err := s.TestExchanges(p2ptest.Exchange{
Label: "getPeersMsg message", Label: "getPeersMsg message",
Expects: []p2ptest.Expect{ Expects: []p2ptest.Expect{
p2ptest.Expect{ p2ptest.Expect{
@ -53,4 +53,8 @@ func TestRegisterAndConnect(t *testing.T) {
}, },
}, },
}) })
if err != nil {
t.Fatal(err)
}
} }