Merge pull request #25 from fvosberg/fix-test-execution-in-forks
[PATCH] Made tests independent from package path
This commit is contained in:
commit
c3ea983498
@ -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")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user