loginsrv

Unnamed repository; edit this file 'description' to name the repository.
git clone git@jamesshield.xyz:repos/loginsrv.git
Log | Files | Refs | README | LICENSE

commit 8fb7315c737d3582c2e988047b3e0b1886dc77a7
parent 867782839455b157510d6330c01d1dec0abab35f
Author: Daniel Zerlett <d.zerlett@tarent.de>
Date:   Thu, 14 Nov 2019 14:00:33 +0100

Merge pull request #145 from kernle32dll/fixup-tip-build

Fix up broken tip build
Diffstat:
Mlogging/logstash_formatter_test.go | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/logging/logstash_formatter_test.go b/logging/logstash_formatter_test.go @@ -17,6 +17,8 @@ import ( func TestLogstashFormatter(t *testing.T) { lf := LogstashFormatter{Type: "abc"} + someErr := &url.Error{Op: "Get", URL: "http://example.com", Err: fmt.Errorf("The error")} + fields := logrus.Fields{ "message": "def", "level": "ijk", @@ -24,7 +26,7 @@ func TestLogstashFormatter(t *testing.T) { "one": 1, "pi": 3.14, "bool": true, - "error": &url.Error{Op: "Get", URL: "http://example.com", Err: fmt.Errorf("The error")}, + "error": someErr, } entry := logrus.WithFields(fields) @@ -51,7 +53,7 @@ func TestLogstashFormatter(t *testing.T) { {"abc", "type"}, {"msg", "message"}, {"info", "level"}, - {"Get http://example.com: The error", "error"}, + {someErr.Error(), "error"}, // substituted fields {"def", "fields.message"}, {"ijk", "fields.level"},