From 43a5aaa778416df85016c388eb581bf362a24b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 9 Aug 2018 20:58:31 +0200 Subject: [PATCH] Fix broken tests --- hugolib/embedded_shortcodes_test.go | 4 ++-- resource/image_test.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hugolib/embedded_shortcodes_test.go b/hugolib/embedded_shortcodes_test.go index 36ffe76c5..1ac050ab0 100644 --- a/hugolib/embedded_shortcodes_test.go +++ b/hugolib/embedded_shortcodes_test.go @@ -246,11 +246,11 @@ func TestShortcodeGist(t *testing.T) { }{ { `{{< gist spf13 7896402 >}}`, - "(?s)^", + "(?s)^", }, { `{{< gist spf13 7896402 "img.html" >}}`, - "(?s)^", + "(?s)^", }, } { var ( diff --git a/resource/image_test.go b/resource/image_test.go index d6bd2b0dc..a9aacbdce 100644 --- a/resource/image_test.go +++ b/resource/image_test.go @@ -16,7 +16,6 @@ package resource import ( "fmt" "math/rand" - "os" "path/filepath" "strconv" "testing"