If a test wants to assert the file permission error, for example, writing to the root of file system, "go test" returns an syscall.EACCES
error, while "bazel test" returns an syscall.EPERM
. How to make the test passes in both "bazel test" and "go test"?
An example can be found here.
Aucun commentaire:
Enregistrer un commentaire