Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7d3be5

Browse files
Merge pull request gin-gonic#557 from AlbinOS/patch-1
Fix typo on gin_test.go
2 parents 2afce84 + 1f2e53d commit a7d3be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gin_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func TestListOfRoutes(t *testing.T) {
244244
func assertRoutePresent(t *testing.T, gotRoutes RoutesInfo, wantRoute RouteInfo) {
245245
for _, gotRoute := range gotRoutes {
246246
if gotRoute.Path == wantRoute.Path && gotRoute.Method == wantRoute.Method {
247-
assert.Regexp(t, wantRoute.Path, gotRoute.Path)
247+
assert.Regexp(t, wantRoute.Handler, gotRoute.Handler)
248248
return
249249
}
250250
}

0 commit comments

Comments
 (0)