mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
add roles
Fixes #837 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -2088,7 +2088,7 @@ func TestRecoverer(t *testing.T) {
|
||||
}
|
||||
err = scpCmd.handle()
|
||||
assert.EqualError(t, err, common.ErrGenericFailure.Error())
|
||||
assert.Len(t, common.Connections.GetStats(), 0)
|
||||
assert.Len(t, common.Connections.GetStats(""), 0)
|
||||
}
|
||||
|
||||
func TestListernerAcceptErrors(t *testing.T) {
|
||||
@@ -2241,7 +2241,7 @@ func TestMaxUserSessions(t *testing.T) {
|
||||
assert.Contains(t, err.Error(), "too many open sessions")
|
||||
}
|
||||
common.Connections.Remove(connection.GetID())
|
||||
assert.Len(t, common.Connections.GetStats(), 0)
|
||||
assert.Len(t, common.Connections.GetStats(""), 0)
|
||||
}
|
||||
|
||||
func TestCanReadSymlink(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user