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)
|
testLog(0, "Testing against URL "+testBaseURL+testKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestSetupURL tests URL parsing and link initialization.
|
// TestInit tests session construction and link initialization.
|
||||||
func TestSetupURL(t *testing.T) {
|
func TestInit(t *testing.T) {
|
||||||
testLog(0, "TestSetupURL")
|
testLog(0, "TestInit")
|
||||||
// test with just the base URL
|
// test with just the base URL
|
||||||
s := NewSession(testBaseURL, testTimeout, testLog)
|
s := NewSession(testBaseURL, testTimeout, testLog)
|
||||||
if s.url != testBaseURL && s.link.timeout != testTimeout {
|
if s.url != testBaseURL && s.link.timeout != testTimeout {
|
||||||
|
@ -180,7 +180,6 @@ func TestErorHandling(t *testing.T) {
|
||||||
// test errInvalidBody
|
// test errInvalidBody
|
||||||
tag = buf[:11]
|
tag = buf[:11]
|
||||||
_, err = s.Write(tag)
|
_, err = s.Write(tag)
|
||||||
fmt.Printf("err = %v\n", err)
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Errorf("Write did not return errInvalidBody")
|
t.Errorf("Write did not return errInvalidBody")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue