mirror of
https://code.forgejo.org/actions/ovh-dns-update
synced 2025-03-15 14:54:40 +01:00
fix perm
This commit is contained in:
parent
ddda991f33
commit
d9a2a6c1f0
1 changed files with 1 additions and 2 deletions
|
@ -78,14 +78,13 @@ func TestRun(t *testing.T) {
|
||||||
t.Error(msg)
|
t.Error(msg)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = os.WriteFile("dns.txt", []byte(body.Target), 0x444)
|
err = os.WriteFile("dns.txt", []byte(body.Target), 0x777)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
msg := fmt.Sprintf("could write dns.txt: %v", err)
|
msg := fmt.Sprintf("could write dns.txt: %v", err)
|
||||||
http.Error(w, msg, http.StatusInternalServerError)
|
http.Error(w, msg, http.StatusInternalServerError)
|
||||||
t.Error(msg)
|
t.Error(msg)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
http.Error(w, "TARGET"+body.Target, http.StatusInternalServerError)
|
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
t.Cleanup(s.Close)
|
t.Cleanup(s.Close)
|
||||||
|
|
Loading…
Add table
Reference in a new issue