mirror of
https://github.com/juanfont/headscale.git
synced 2026-01-23 10:25:47 +00:00
hscontrol: use octal literal syntax in test
This commit is contained in:
parent
a496864762
commit
4e77e910c5
1 changed files with 2 additions and 2 deletions
|
|
@ -52,11 +52,11 @@ func TestOIDCCallbackTemplate(t *testing.T) {
|
|||
|
||||
// Save the output for manual inspection
|
||||
testDataDir := filepath.Join("testdata", "oidc_templates")
|
||||
err := os.MkdirAll(testDataDir, 0755)
|
||||
err := os.MkdirAll(testDataDir, 0o755)
|
||||
require.NoError(t, err)
|
||||
|
||||
outputFile := filepath.Join(testDataDir, tt.name+".html")
|
||||
err = os.WriteFile(outputFile, []byte(html), 0644)
|
||||
err = os.WriteFile(outputFile, []byte(html), 0o600)
|
||||
require.NoError(t, err)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue