From 300b9985aa4bd97c95c6dd97cfdc0f0a109417f6 Mon Sep 17 00:00:00 2001 From: Ajitem Sahasrabuddhe Date: Mon, 13 Jan 2020 11:15:07 +0530 Subject: [PATCH] fix github-actions for windows --- docs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs_test.go b/docs_test.go index 90240e7..232e24e 100644 --- a/docs_test.go +++ b/docs_test.go @@ -80,7 +80,7 @@ func expectFileContent(t *testing.T, file, expected string) { data, err := ioutil.ReadFile(file) // Ignore windows line endings // TODO: Replace with bytes.ReplaceAll when support for Go 1.11 is dropped - expected = string(bytes.Replace([]byte(expected), []byte("\r\n"), []byte("\n"), -1)) + data = bytes.Replace(data, []byte("\r\n"), []byte("\n"), -1) expect(t, err, nil) expect(t, string(data), expected) }