test: make tests stable (#1968)

* test: make tests stable

* test: fix fails
This commit is contained in:
Kevin Wan
2022-06-04 23:46:29 +08:00
committed by GitHub
parent f366e1d936
commit af05219b70
5 changed files with 15 additions and 14 deletions

View File

@@ -196,7 +196,7 @@ func (ng *engine) print() {
sort.Strings(routes)
fmt.Println("routes:")
fmt.Println("Routes:")
for _, route := range routes {
fmt.Printf(" %s\n", route)
}

View File

@@ -350,7 +350,7 @@ func TestServer_PrintRoutes(t *testing.T) {
Name: foo
Port: 54321
`
expect = `routes:
expect = `Routes:
GET /bar
GET /foo
GET /foo/:bar