mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
minor test fix
This commit is contained in:
parent
1dbdfbfd7e
commit
7272c76847
|
@ -6,6 +6,8 @@
|
||||||
>
|
>
|
||||||
> ![](https://iris-go.com/images/cli.png) Try the official [Iris Command Line Interface](https://github.com/kataras/iris-cli) today!
|
> ![](https://iris-go.com/images/cli.png) 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).
|
||||||
|
|
||||||
<!-- ![](https://iris-go.com/images/release.png) Iris version **12.1.8** has been [released](HISTORY.md#su-16-february-2020--v1218)! -->
|
<!-- ![](https://iris-go.com/images/release.png) 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")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user