This commit is contained in:
Gerasimos (Makis) Maropoulos 2020-08-12 08:00:42 +03:00
parent 9ed566b076
commit 22e25c3586
No known key found for this signature in database
GPG Key ID: 5DBE766BD26A54E7
2 changed files with 7 additions and 1 deletions

View File

@ -361,6 +361,8 @@ Other Improvements:
- Fix `AutoTLS` when used with `iris.TLSNoRedirect` [*](https://github.com/kataras/iris/issues/1577). The `AutoTLS` runner can be customized through the new `iris.AutoTLSNoRedirect` instead, read its go documentation. Example of having both TLS and non-TLS versions of the same application without conflicts with letsencrypt `./well-known` path:
![](https://iris-go.com/images/github/autotls-1.png)
```go
package main

View File

@ -50,6 +50,10 @@ func TestJSONLogger(t *testing.T) {
got := out.String()
got = got[strings.Index(got, "{"):] // take only the json we care and after.
if expected != got {
t.Fatalf("expected:\n%s\nbut got:\n%s", expected, got)
if !strings.HasSuffix(got, expected) {
// C:/mygopath vs /home/travis vs any file system,
// pure check but it does the job.
t.Fatalf("expected:\n%s\nbut got:\n%s", expected, got)
}
}
}