From aa789f7e78e19a75a941a95dd21738da73628cfc Mon Sep 17 00:00:00 2001 From: scruzin Date: Sun, 13 Jan 2019 14:33:14 +1030 Subject: [PATCH] TestSetupURL renamed TestInit. --- rtmp/rtmp_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rtmp/rtmp_test.go b/rtmp/rtmp_test.go index 0dd95c9e..4de2daff 100644 --- a/rtmp/rtmp_test.go +++ b/rtmp/rtmp_test.go @@ -116,9 +116,9 @@ func TestKey(t *testing.T) { testLog(0, "Testing against URL "+testBaseURL+testKey) } -// TestSetupURL tests URL parsing and link initialization. -func TestSetupURL(t *testing.T) { - testLog(0, "TestSetupURL") +// TestInit tests session construction and link initialization. +func TestInit(t *testing.T) { + testLog(0, "TestInit") // test with just the base URL s := NewSession(testBaseURL, testTimeout, testLog) if s.url != testBaseURL && s.link.timeout != testTimeout { @@ -180,7 +180,6 @@ func TestErorHandling(t *testing.T) { // test errInvalidBody tag = buf[:11] _, err = s.Write(tag) - fmt.Printf("err = %v\n", err) if err == nil { t.Errorf("Write did not return errInvalidBody") }