mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-27 12:52:02 -08:00
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")
|
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…
Reference in New Issue
Block a user