entc/internal: fix windows filepath separator (#1227)

This commit is contained in:
zzwx
2021-02-02 12:33:47 -05:00
committed by GitHub
parent 027d72e5e0
commit 7a2173f20d

View File

@@ -33,6 +33,6 @@ type User struct {
require.NoError(t, err)
err = CheckDir(target)
require.Error(t, err)
expected := fmt.Sprintf("vcs conflict %s/b.go:4", target)
expected := fmt.Sprintf("vcs conflict %s:4", filepath.Join(target, "b.go"))
require.EqualError(t, err, expected)
}