fix stream management for component + add test

disco_info_form
Martin/Geno 5 years ago committed by Mickaël Rémond
parent d3b45b42a5
commit 6005a964ba

@ -108,7 +108,7 @@ func (c *Component) Connect() error {
} }
} }
func (c *Component) Resume() error { func (c *Component) Resume(SMState) error {
return errors.New("components do not support stream management") return errors.New("components do not support stream management")
} }

@ -23,3 +23,10 @@ func TestHandshake(t *testing.T) {
func TestGenerateHandshake(t *testing.T) { func TestGenerateHandshake(t *testing.T) {
// TODO // TODO
} }
// Test that NewStreamManager can accept a Component.
//
// This validates that Component conforms to StreamClient interface.
func TestStreamManager(t *testing.T) {
NewStreamManager(&Component{}, nil)
}

Loading…
Cancel
Save