"Check" the error value of ioutil.WriteFile
We could, alternatively, use t.Fatal... this matches the MkdirAll invocation from github_template_test, however...
This commit is contained in:
parent
a33124414c
commit
41543b564d
1 changed files with 1 additions and 1 deletions
|
|
@ -889,7 +889,7 @@ func TestPRCreate_survey_defaults_monocommit_template(t *testing.T) {
|
|||
|
||||
templateFp := path.Join(tmpdir, ".github/PULL_REQUEST_TEMPLATE.md")
|
||||
_ = os.MkdirAll(path.Dir(templateFp), 0700)
|
||||
ioutil.WriteFile(templateFp, []byte("... turned to a dead channel"), 0700)
|
||||
_ = ioutil.WriteFile(templateFp, []byte("... turned to a dead channel"), 0700)
|
||||
|
||||
cs.Stub("") // git config --get-regexp (determineTrackingBranch)
|
||||
cs.Stub("") // git show-ref --verify (determineTrackingBranch)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue