MCPcopy Index your code
hub / github.com/koding/kite / TestRegisterKite

Function TestRegisterKite

kontrol/kontrol_test.go:522–536  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

520}
521
522func TestRegisterKite(t *testing.T) {
523 kiteURL := &url.URL{Scheme: "http", Host: "localhost:4444", Path: "/kite"}
524 m := kite.New("mathworker3", "1.1.1")
525 m.Config = conf.Config.Copy()
526
527 res, err := m.Register(kiteURL)
528 if err != nil {
529 t.Fatal(err)
530 }
531 defer m.Close()
532
533 if kiteURL.String() != res.URL.String() {
534 t.Errorf("register: got %s expected %s", res.URL.String(), kiteURL.String())
535 }
536}
537
538func TestKontrol(t *testing.T) {
539 // Start mathworker

Callers

nothing calls this directly

Calls 5

CopyMethod · 0.80
FatalMethod · 0.80
RegisterMethod · 0.45
CloseMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected