d0cb112f by astaxie

fix test func name

1 parent c58445c7
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
6 ) 6 )
7 7
8 func TestGetUrl(t *testing.T) { 8 func TestGetUrl(t *testing.T) {
9 resp, err := GetUrl("http://beego.me/").Response() 9 resp, err := Get("http://beego.me/").Response()
10 if err != nil { 10 if err != nil {
11 t.Fatal(err) 11 t.Fatal(err)
12 } 12 }
...@@ -22,7 +22,7 @@ func TestGetUrl(t *testing.T) { ...@@ -22,7 +22,7 @@ func TestGetUrl(t *testing.T) {
22 t.Fatal("data is no") 22 t.Fatal("data is no")
23 } 23 }
24 24
25 str, err := GetUrl("http://beego.me/").String() 25 str, err := Get("http://beego.me/").String()
26 if err != nil { 26 if err != nil {
27 t.Fatal(err) 27 t.Fatal(err)
28 } 28 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!