From 10bc28350278b9c7cda654e84967f64f6f8f43cd Mon Sep 17 00:00:00 2001 From: Frederik Vosberg Date: Thu, 27 Jul 2017 21:05:01 +0200 Subject: [PATCH] [PATCH] Made tests independent from package path The test case checked for a whole package path, which should exist in a generated moq file, but that failed for obvious reasons in forks --- pkg/moq/moq_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/moq/moq_test.go b/pkg/moq/moq_test.go index a0429b0..4ba323f 100644 --- a/pkg/moq/moq_test.go +++ b/pkg/moq/moq_test.go @@ -210,7 +210,7 @@ func TestDotImports(t *testing.T) { t.Errorf("mock error: %s", err) } s := buf.String() - if !strings.Contains(s, `"github.com/matryer/moq/pkg/moq/testpackages/dotimport"`) { + if !strings.Contains(s, `/moq/pkg/moq/testpackages/dotimport"`) { t.Error("contains invalid dot import") } }