forked from jshiffer/go-xmpp
fix stream management for component + add test
This commit is contained in:
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")
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user