mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-29 16:30:44 +01:00
address comments
This commit is contained in:
1 parent
1c64ec6476
commit
e9f83af6e2
9 files changed
+109
-19
No files matched your search
@@ -132,7 +132,7 @@ func TestS3IAMDistributedTests(t *testing.T) {
|
||||
var lastErr error
|
||||
for attempt := 0; attempt <= maxRetries; attempt++ {
|
||||
if attempt > 0 {
|
||||
time.Sleep(retryDelay * time.Duration(attempt)) // Exponential backoff
|
||||
time.Sleep(retryDelay * time.Duration(attempt)) // Linear backoff
|
||||
}
|
||||
|
||||
lastErr = operation()
|
||||
|
||||
@@ -390,9 +390,8 @@ func (f *S3IAMTestFramework) generateSTSSessionToken(username, roleName string,
|
||||
return "", err
|
||||
}
|
||||
|
||||
// Note: In a real implementation, we would also create the session in the STS session store
|
||||
// For now, we'll rely on the fact that if JWT validation passes, the session should be considered valid
|
||||
// This is a limitation of our current testing approach
|
||||
// The generated JWT is self-contained and includes all necessary session information.
|
||||
// The stateless design of the STS service means no external session storage is required.
|
||||
|
||||
return tokenString, nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user