mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 10:57:05 +00:00
minor test fix
This commit is contained in:
@@ -3,9 +3,11 @@
|
|||||||
# News
|
# News
|
||||||
|
|
||||||
> This is the under-**development branch**. Stay tuned for the upcoming release [v12.2.0](HISTORY.md#Next). Looking for a stable release? Head over to the [v12.1.8 branch](https://github.com/kataras/iris/tree/v12.1.8) instead.
|
> This is the under-**development branch**. Stay tuned for the upcoming release [v12.2.0](HISTORY.md#Next). Looking for a stable release? Head over to the [v12.1.8 branch](https://github.com/kataras/iris/tree/v12.1.8) instead.
|
||||||
>
|
>
|
||||||
>  Try the official [Iris Command Line Interface](https://github.com/kataras/iris-cli) today!
|
>  Try the official [Iris Command Line Interface](https://github.com/kataras/iris-cli) today!
|
||||||
|
|
||||||
|
> Due to the large workload, there may be delays in answering your [questions](https://github.com/kataras/iris/issues).
|
||||||
|
|
||||||
<!--  Iris version **12.1.8** has been [released](HISTORY.md#su-16-february-2020--v1218)! -->
|
<!--  Iris version **12.1.8** has been [released](HISTORY.md#su-16-february-2020--v1218)! -->
|
||||||
|
|
||||||
# Iris Web Framework <a href="README_GR.md"><img width="20px" src="https://iris-go.com/images/flag-greece.svg" /></a> <a href="README_FR.md"><img width="20px" src="https://iris-go.com/images/flag-france.svg" /></a> <a href="README_ZH.md"><img width="20px" src="https://iris-go.com/images/flag-china.svg" /></a> <a href="README_ES.md"><img width="20px" src="https://iris-go.com/images/flag-spain.png" /></a> <a href="README_FA.md"><img width="20px" src="https://iris-go.com/images/flag-iran.svg" /></a> <a href="README_RU.md"><img width="20px" src="https://iris-go.com/images/flag-russia.svg" /></a> <a href="README_KO.md"><img width="20px" src="https://iris-go.com/images/flag-south-korea.svg?v=12" /></a>
|
# Iris Web Framework <a href="README_GR.md"><img width="20px" src="https://iris-go.com/images/flag-greece.svg" /></a> <a href="README_FR.md"><img width="20px" src="https://iris-go.com/images/flag-france.svg" /></a> <a href="README_ZH.md"><img width="20px" src="https://iris-go.com/images/flag-china.svg" /></a> <a href="README_ES.md"><img width="20px" src="https://iris-go.com/images/flag-spain.png" /></a> <a href="README_FA.md"><img width="20px" src="https://iris-go.com/images/flag-iran.svg" /></a> <a href="README_RU.md"><img width="20px" src="https://iris-go.com/images/flag-russia.svg" /></a> <a href="README_KO.md"><img width="20px" src="https://iris-go.com/images/flag-south-korea.svg?v=12" /></a>
|
||||||
|
|||||||
@@ -61,5 +61,5 @@ func TestJWT(t *testing.T) {
|
|||||||
// Test expired (note checks happen based on second round).
|
// Test expired (note checks happen based on second round).
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
e.GET("/protected").WithHeader("Authorization", headerValue).Expect().
|
e.GET("/protected").WithHeader("Authorization", headerValue).Expect().
|
||||||
Status(iris.StatusUnauthorized).Body().Equal("token expired")
|
Status(iris.StatusUnauthorized).Body().Equal("jwt: token expired")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user