TestSetupURL renamed TestInit.

This commit is contained in:
scruzin 2019-01-13 14:33:14 +10:30
parent fb36a2dccf
commit aa789f7e78
1 changed files with 3 additions and 4 deletions

View File

@ -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")
}