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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user