mirror of https://bitbucket.org/ausocean/av.git
TestSetupURL renamed TestInit.
This commit is contained in:
parent
fb36a2dccf
commit
aa789f7e78
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue