mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-26 07:24:47 +00:00
Add: GetIntSetting helper
This commit is contained in:
1 parent
fffcf1aa1b
commit
a75be3a927
11 files changed
+59
-110
No files matched your search
@@ -199,26 +199,4 @@ func TestFileSystem_GetUploadToken(t *testing.T) {
|
||||
testHandller.AssertExpectations(t)
|
||||
asserts.Error(err)
|
||||
}
|
||||
|
||||
// 上传有效期错误
|
||||
{
|
||||
cache.SetSettings(map[string]string{
|
||||
"upload_credential_timeout": "?10",
|
||||
"upload_session_timeout": "10",
|
||||
}, "setting_")
|
||||
|
||||
_, err := fs.GetUploadToken(ctx, "/", 10)
|
||||
asserts.Error(err)
|
||||
}
|
||||
|
||||
// 上传会话有效期错误
|
||||
{
|
||||
cache.SetSettings(map[string]string{
|
||||
"upload_credential_timeout": "10",
|
||||
"upload_session_timeout": "?10",
|
||||
}, "setting_")
|
||||
|
||||
_, err := fs.GetUploadToken(ctx, "/", 10)
|
||||
asserts.Error(err)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user