From b60f573125e2e7905516c40b10a8c617e00b4ac7 Mon Sep 17 00:00:00 2001 From: Frederik Vosberg Date: Tue, 10 Jul 2018 16:47:25 +0200 Subject: [PATCH] [FIX] tests assertion --- pkg/moq/moq_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/moq/moq_test.go b/pkg/moq/moq_test.go index 2fb49ea..8775592 100644 --- a/pkg/moq/moq_test.go +++ b/pkg/moq/moq_test.go @@ -283,8 +283,7 @@ func TestImportedPackageWithSameName(t *testing.T) { t.Errorf("mock error: %s", err) } s := buf.String() - if !strings.Contains(s, `"samenameimport.A"`) { - t.Error("missing samenameimport.A to address the struct A from the external package samenameimport") + if !strings.Contains(s, `a samename.A`) { + t.Error("missing samename.A to address the struct A from the external package samename") } - t.Logf("\n\n%s\n\n", s) }