diff --git a/component.go b/component.go index af424a2..a6b0946 100644 --- a/component.go +++ b/component.go @@ -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") } diff --git a/component_test.go b/component_test.go index 222b471..5fbe45b 100644 --- a/component_test.go +++ b/component_test.go @@ -23,3 +23,10 @@ func TestHandshake(t *testing.T) { func TestGenerateHandshake(t *testing.T) { // TODO } + +// Test that NewStreamManager can accept a Component. +// +// This validates that Component conforms to StreamClient interface. +func TestStreamManager(t *testing.T) { + NewStreamManager(&Component{}, nil) +}