mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-04-21 12:32:38 +00:00
azblob: fix SAS URL with embedded container name
Fixes #944 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -545,7 +545,7 @@ func TestIdleConnections(t *testing.T) {
|
||||
cFTP.lastActivity = time.Now().Add(-24 * time.Hour).UnixNano()
|
||||
sshConn2.lastActivity = c.lastActivity
|
||||
startPeriodicChecks(100 * time.Millisecond)
|
||||
assert.Eventually(t, func() bool { return len(Connections.GetStats()) == 0 }, 1*time.Second, 200*time.Millisecond)
|
||||
assert.Eventually(t, func() bool { return len(Connections.GetStats()) == 0 }, 2*time.Second, 200*time.Millisecond)
|
||||
assert.Eventually(t, func() bool {
|
||||
Connections.RLock()
|
||||
defer Connections.RUnlock()
|
||||
|
||||
@@ -3213,7 +3213,10 @@ func TestEventRuleProviderEvents(t *testing.T) {
|
||||
// update the folder
|
||||
_, _, err = httpdtest.UpdateFolder(folder, http.StatusOK)
|
||||
assert.NoError(t, err)
|
||||
if assert.FileExists(t, outPath) {
|
||||
if assert.Eventually(t, func() bool {
|
||||
_, err := os.Stat(outPath)
|
||||
return err == nil
|
||||
}, 2*time.Second, 100*time.Millisecond) {
|
||||
content, err := os.ReadFile(outPath)
|
||||
assert.NoError(t, err)
|
||||
var folderGet vfs.BaseVirtualFolder
|
||||
|
||||
Reference in New Issue
Block a user