1
0
mirror of https://github.com/drakkan/sftpgo.git synced 2025-11-29 22:08:10 +02:00

version: only git commit and build date must be modifiable

Improved some test cases too
This commit is contained in:
Nicola Murino
2019-08-08 21:42:07 +02:00
parent 90607d4f86
commit 51aacae3c5
5 changed files with 44 additions and 13 deletions

View File

@@ -310,6 +310,10 @@ func TestSymlink(t *testing.T) {
if err != nil {
t.Errorf("error creating symlink: %v", err)
}
err = client.Symlink(testFileName, testFileName+".link")
if err == nil {
t.Errorf("creating a symlink to an existing one must fail")
}
err = client.Remove(testFileName + ".link")
if err != nil {
t.Errorf("error removing symlink: %v", err)