File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ import (
12
12
"testing"
13
13
"time"
14
14
15
+ "github.com/stretchr/testify/require"
16
+
15
17
"github.com/stretchr/testify/assert"
16
18
17
19
"github.com/windmilleng/tilt/internal/dockerignore"
@@ -95,7 +97,8 @@ func TestGitBranchSwitch(t *testing.T) {
95
97
}
96
98
97
99
if i != 0 {
98
- os .RemoveAll (dir )
100
+ err := os .RemoveAll (dir )
101
+ require .NoError (t , err )
99
102
}
100
103
}
101
104
@@ -313,7 +316,12 @@ func TestWatchBrokenLink(t *testing.T) {
313
316
if err != nil {
314
317
t .Fatal (err )
315
318
}
316
- defer newRoot .TearDown ()
319
+ defer func () {
320
+ err := newRoot .TearDown ()
321
+ if err != nil {
322
+ fmt .Printf ("error tearing down temp dir: %v\n " , err )
323
+ }
324
+ }()
317
325
318
326
link := filepath .Join (newRoot .Path (), "brokenLink" )
319
327
missingFile := filepath .Join (newRoot .Path (), "missingFile" )
@@ -323,7 +331,8 @@ func TestWatchBrokenLink(t *testing.T) {
323
331
}
324
332
325
333
f .watch (newRoot .Path ())
326
- os .Remove (link )
334
+ err = os .Remove (link )
335
+ require .NoError (t , err )
327
336
f .assertEvents (link )
328
337
}
329
338
You can’t perform that action at this time.
0 commit comments