Skip to content

Commit e9fd2fe

Browse files
starbopsclaude
andcommitted
fix(tests): resolve CI failures in lint and integration tests
- Fix code formatting in tests/integration/contract_test.go using gofmt - Fix OpenAPI validator tests to use correct health endpoint path (/health instead of /api/v1/health) - Resolves lint job failure due to formatting issues - Eliminates OpenAPI validator warnings about missing /api/v1/health spec 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 811646c commit e9fd2fe

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/integration/contract_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ func (s *ContractTestSuite) createTestUser() *models.AuthResponse {
112112
return s.createTestUserWithEmail("contract@example.com")
113113
}
114114

115-
116115
// makeRequest creates an HTTP request and validates it against OpenAPI spec
117116
func (s *ContractTestSuite) makeRequest(method, path string, body interface{}, headers map[string]string) *testutil.HTTPResponseValidator {
118117
var reqBody *bytes.Buffer

tests/integration/openapi_validator_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TestOpenAPIValidator_ThreadSafety(t *testing.T) {
4141
body := []byte(`{"status": "ok", "timestamp": "2023-01-01T00:00:00Z"}`)
4242

4343
// This should not cause race conditions
44-
validator.ValidateResponse(t, "GET", "/api/v1/health", resp, body)
44+
validator.ValidateResponse(t, "GET", "/health", resp, body)
4545
}
4646
}(i)
4747
}
@@ -92,7 +92,7 @@ func TestOpenAPIValidator_BasicValidation(t *testing.T) {
9292
body := []byte(`{"status": "ok", "timestamp": "2023-01-01T00:00:00Z"}`)
9393

9494
// This should not panic or cause errors
95-
validator.ValidateResponse(t, "GET", "/api/v1/health", resp.Result(), body)
95+
validator.ValidateResponse(t, "GET", "/health", resp.Result(), body)
9696
}
9797

9898
// TestHTTPResponseValidator_ConcurrentUsage tests concurrent usage of HTTPResponseValidator

0 commit comments

Comments
 (0)