mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-18 14:52:18 +08:00
test(router-test): reverse the order when register router when test func GetFullPath
This commit is contained in:
parent
c38bc3cc06
commit
c2e0974b3d
@ -585,6 +585,7 @@ func TestRouteContextHoldsFullPath(t *testing.T) {
|
||||
// Test routes
|
||||
routes := []string{
|
||||
"/simple",
|
||||
"/project/:name/bui",
|
||||
"/project/:name",
|
||||
"/",
|
||||
"/news/home",
|
||||
@ -592,7 +593,6 @@ func TestRouteContextHoldsFullPath(t *testing.T) {
|
||||
"/simple-two/one",
|
||||
"/simple-two/one-two",
|
||||
"/project/:name/build/*params",
|
||||
"/project/:name/bui",
|
||||
}
|
||||
|
||||
for _, route := range routes {
|
||||
|
Loading…
x
Reference in New Issue
Block a user