test: make tests stable (#1968)
* test: make tests stable * test: fix fails
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user