mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
Check errors or explicitly ignore
This commit is contained in:
parent
f994e4644e
commit
b21c04091a
1 changed files with 6 additions and 5 deletions
|
|
@ -56,17 +56,18 @@ func TestInstallCommand(t *testing.T) {
|
||||||
localDependency := "jsonnet/foobar"
|
localDependency := "jsonnet/foobar"
|
||||||
|
|
||||||
cleanup := func() {
|
cleanup := func() {
|
||||||
os.Remove(jsonnetfile.File)
|
_ = os.Remove(jsonnetfile.File)
|
||||||
os.Remove(jsonnetfile.LockFile)
|
_ = os.Remove(jsonnetfile.LockFile)
|
||||||
os.RemoveAll("vendor")
|
_ = os.RemoveAll("vendor")
|
||||||
os.RemoveAll("jsonnet")
|
_ = os.RemoveAll("jsonnet")
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tc := range testcases {
|
for _, tc := range testcases {
|
||||||
_ = t.Run(tc.Name, func(t *testing.T) {
|
_ = t.Run(tc.Name, func(t *testing.T) {
|
||||||
cleanup()
|
cleanup()
|
||||||
|
|
||||||
os.MkdirAll(localDependency, os.ModePerm)
|
err := os.MkdirAll(localDependency, os.ModePerm)
|
||||||
|
assert.NoError(t, err)
|
||||||
|
|
||||||
initCommand("")
|
initCommand("")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue