Merge pull request #25 from fvosberg/fix-test-execution-in-forks

[PATCH] Made tests independent from package path
This commit is contained in:
Mat Ryer 2017-08-02 16:00:01 +01:00 committed by GitHub
commit c3ea983498

View File

@ -220,7 +220,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")
}
}