diff options
Diffstat (limited to 'modules/charset/charset_test.go')
-rw-r--r-- | modules/charset/charset_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/charset/charset_test.go b/modules/charset/charset_test.go index a81a6e03ee..394a42c71f 100644 --- a/modules/charset/charset_test.go +++ b/modules/charset/charset_test.go @@ -230,7 +230,11 @@ func TestDetectEncoding(t *testing.T) { // we accept either. assert.Contains(t, encoding, "ISO-8859") + old := setting.Repository.AnsiCharset setting.Repository.AnsiCharset = "placeholder" + defer func() { + setting.Repository.AnsiCharset = old + }() testSuccess(b, "placeholder") // invalid bytes |