Commit ecf9afbe authored by Guangming Wang's avatar Guangming Wang

fix file mode,it should be octal expressed

Signed-off-by: 's avatarGuangming Wang <guangming.wang@daocloud.io>
parent 519ccac2
......@@ -241,7 +241,7 @@ func TestWriteFile(t *testing.T) {
t.Errorf("failed to create test-file (%v)", err)
}
defer os.Remove(repoFile.Name())
if err := sampleRepository.WriteFile(repoFile.Name(), 744); err != nil {
if err := sampleRepository.WriteFile(repoFile.Name(), 0744); err != nil {
t.Errorf("failed to write file (%v)", err)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment