mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Auth: Refactor cluster configuration and provisioning API endpoints #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -206,7 +206,7 @@ func TestCacheFileFromReader(t *testing.T) {
|
||||
func TestWriteFile_Truncates(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
p := filepath.Join(dir, "f.txt")
|
||||
assert.NoError(t, os.WriteFile(p, []byte("LONGDATA"), 0o644))
|
||||
assert.NoError(t, os.WriteFile(p, []byte("LONGDATA"), ModeFile))
|
||||
assert.NoError(t, WriteFile(p, []byte("short"), ModeFile))
|
||||
b, err := os.ReadFile(p)
|
||||
assert.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user