Skip to content

Commit 22e25c3

Browse files
committed
minor
1 parent 9ed566b commit 22e25c3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

HISTORY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ Other Improvements:
361361

362362
- 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:
363363

364+
![](https://iris-go.com/images/github/autotls-1.png)
365+
364366
```go
365367
package main
366368

_examples/logging/json-logger/main_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ func TestJSONLogger(t *testing.T) {
5050
got := out.String()
5151
got = got[strings.Index(got, "{"):] // take only the json we care and after.
5252
if expected != got {
53-
t.Fatalf("expected:\n%s\nbut got:\n%s", expected, got)
53+
if !strings.HasSuffix(got, expected) {
54+
// C:/mygopath vs /home/travis vs any file system,
55+
// pure check but it does the job.
56+
t.Fatalf("expected:\n%s\nbut got:\n%s", expected, got)
57+
}
5458
}
5559
}

0 commit comments

Comments
 (0)