Skip to content

Commit e9ec7f1

Browse files
committed
pkg/utils: Simplify code by avoiding a fallible operation
Fallout from e9e77fb #1728
1 parent bec3a8e commit e9ec7f1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/pkg/utils/utils_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ func TestPathExistsDoesNotExist(t *testing.T) {
371371
}
372372

373373
func TestPathExistsExecutable(t *testing.T) {
374-
path, err := os.Executable()
375-
require.NoError(t, err)
374+
path := t.TempDir()
376375
exists := PathExists(path)
377376
assert.True(t, exists)
378377
}

0 commit comments

Comments
 (0)