mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
fix some lint issues
This commit is contained in:
@@ -181,6 +181,10 @@ func TestInitialization(t *testing.T) {
|
||||
if err == nil {
|
||||
t.Error("Inizialize must fail")
|
||||
}
|
||||
err = httpd.ReloadTLSCertificate()
|
||||
if err != nil {
|
||||
t.Error("realoding TLS Certificate must return nil error if no certificate is configured")
|
||||
}
|
||||
}
|
||||
|
||||
func TestBasicUserHandling(t *testing.T) {
|
||||
@@ -1105,6 +1109,11 @@ func TestDumpdata(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
}
|
||||
// subdir cannot be created
|
||||
_, _, err = httpd.Dumpdata(filepath.Join("subdir", "bck.json"), "", http.StatusInternalServerError)
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
}
|
||||
os.Chmod(backupsPath, 0755)
|
||||
}
|
||||
dataProvider = dataprovider.GetProvider()
|
||||
|
||||
Reference in New Issue
Block a user