mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
fix #2158 and more
This commit is contained in:
@@ -108,7 +108,7 @@ func TestSwitchHosts(t *testing.T) {
|
||||
body = "Switcher: Bad Gateway"
|
||||
}
|
||||
|
||||
e.GET(requestPath).WithURL(URL).Expect().Status(statusCode).Body().Equal(body)
|
||||
e.GET(requestPath).WithURL(URL).Expect().Status(statusCode).Body().IsEqual(body)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -204,7 +204,7 @@ func TestSwitchHostsRedirect(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
e.GET(requestPath).WithURL(requestURL).Expect().Status(statusCode).Body().Equal(body)
|
||||
e.GET(requestPath).WithURL(requestURL).Expect().Status(statusCode).Body().IsEqual(body)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@ func TestSetHost(t *testing.T) {
|
||||
for _, tt := range tests {
|
||||
ex := tt.Expect().Status(iris.StatusOK)
|
||||
ex.Header("Server").Equal(rootApp.String())
|
||||
ex.Body().Equal(forceHost)
|
||||
ex.Body().IsEqual(forceHost)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user