Fix import and test

This commit is contained in:
Mickael Remond
2019-06-08 19:47:05 +02:00
committed by Mickaël Rémond
parent 2d95ca9384
commit 6fc12e9779
2 changed files with 14 additions and 15 deletions

View File

@@ -3,10 +3,11 @@ package xmpp // import "gosrc.io/xmpp"
import "testing"
func TestHandshake(t *testing.T) {
c := Component{
Host: "test.localhost",
opts := ComponentOptions{
Domain: "test.localhost",
Secret: "mypass",
}
c := Component{ComponentOptions: opts}
streamID := "1263952298440005243"
expected := "c77e2ef0109fbbc5161e83b51629cd1353495332"