[FIX] tests assertion

This commit is contained in:
Frederik Vosberg 2018-07-10 16:47:25 +02:00
parent fc06e5c36a
commit b60f573125

View File

@ -283,8 +283,7 @@ func TestImportedPackageWithSameName(t *testing.T) {
t.Errorf("mock error: %s", err) t.Errorf("mock error: %s", err)
} }
s := buf.String() s := buf.String()
if !strings.Contains(s, `"samenameimport.A"`) { if !strings.Contains(s, `a samename.A`) {
t.Error("missing samenameimport.A to address the struct A from the external package samenameimport") t.Error("missing samename.A to address the struct A from the external package samename")
} }
t.Logf("\n\n%s\n\n", s)
} }