ficing all the build errors - checkpoint 1

This commit is contained in:
2025-08-28 12:19:51 -07:00
parent 73258c0b41
commit 3dba26d0cb
4 changed files with 276 additions and 224 deletions

View File

@@ -80,7 +80,7 @@ func TestGetUserProfile(t *testing.T) {
defer mockServer.Close()
// Create client
client := NewClientWithBaseURL(mockServer.URL)
client := NewClientWithBaseURL(mockServer.URL())
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
@@ -127,7 +127,7 @@ func BenchmarkGetUserProfile(b *testing.B) {
mockServer.SetResponse("/userprofile-service/socialProfile", http.StatusOK, mockResponse)
// Create client
client := NewClientWithBaseURL(mockServer.URL)
client := NewClientWithBaseURL(mockServer.URL())
b.ResetTimer()
for i := 0; i < b.N; i++ {
@@ -157,7 +157,7 @@ func BenchmarkGetUserStats(b *testing.B) {
mockServer.SetResponse(path, http.StatusOK, mockResponse)
// Create client
client := NewClientWithBaseURL(mockServer.URL)
client := NewClientWithBaseURL(mockServer.URL())
b.ResetTimer()
for i := 0; i < b.N; i++ {
@@ -233,7 +233,7 @@ func TestGetUserStats(t *testing.T) {
defer mockServer.Close()
// Create client
client := NewClientWithBaseURL(mockServer.URL)
client := NewClientWithBaseURL(mockServer.URL())
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {