fixup! Clear race conditions

This commit is contained in:
2025-09-06 13:17:54 +01:00
parent bf6ab31c50
commit e17b820368
8 changed files with 2823 additions and 30 deletions
+2
View File
@@ -429,6 +429,7 @@ func TestHTTPClientCreation(t *testing.T) {
if client1 == nil {
t.Fatal("CreateDefaultHTTPClient returned nil")
}
// Default client should have 30s timeout
if client1.Timeout != 30*time.Second {
t.Errorf("Expected 30s timeout, got %v", client1.Timeout)
}
@@ -452,6 +453,7 @@ func TestHTTPClientCreation(t *testing.T) {
if client3 == nil {
t.Fatal("CreateHTTPClientWithConfig returned nil")
}
// Custom config client should have 5s timeout as configured
if client3.Timeout != 5*time.Second {
t.Errorf("Expected 5s timeout, got %v", client3.Timeout)
}