Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Jan 3, 2024
1 parent 9892b6f commit ce438de
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Install dependencies
run: go mod download
- name: Run Tests
run: go test -cover `go list ./... | grep -v 'pkg/client'`
run: go test -cover `go list ./...`

test-swagger:
name: Test Swagger
Expand Down
2 changes: 1 addition & 1 deletion api/jobs/job_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (s *JobHandlerTestSuite) Test_GetApplicationJob() {
//nolint:staticcheck // SA1019 we want to make sure that Components is populated for backward compatibility (at least for a while)
s.ElementsMatch(slice.PointersOf(expectedComponents), actualJob.Components)
expectedSteps := []jobModels.Step{
{Name: step1Name, PodName: step1Pod, Status: string(step1Condition), Started: radixutils.FormatTime(&step1Started), Ended: radixutils.FormatTime(&step1Ended), Components: step1Components},
{Name: step1Name, PodName: step1Pod, Status: string(step1Condition), Started: &step1Started.Time, Ended: &step1Ended.Time, Components: step1Components},
{Name: step2Name},
}
s.ElementsMatch(expectedSteps, actualJob.Steps)
Expand Down
16 changes: 8 additions & 8 deletions swaggerui/html/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -6691,8 +6691,8 @@
"ended": {
"description": "Ended timestamp",
"type": "string",
"format": "date-time",
"x-go-name": "Ended"
"x-go-name": "Ended",
"example": "2006-01-02T15:04:05Z"
},
"name": {
"description": "Name of the step",
Expand All @@ -6703,8 +6703,8 @@
"started": {
"description": "Started timestamp",
"type": "string",
"format": "date-time",
"x-go-name": "Started"
"x-go-name": "Started",
"example": "2006-01-02T15:04:05Z"
},
"status": {
"description": "Status of the task",
Expand Down Expand Up @@ -7330,8 +7330,8 @@
"ended": {
"description": "Ended timestamp",
"type": "string",
"x-go-name": "Ended",
"example": "2006-01-02T15:04:05Z"
"format": "date-time",
"x-go-name": "Ended"
},
"name": {
"description": "Name of the step",
Expand All @@ -7342,8 +7342,8 @@
"started": {
"description": "Started timestamp",
"type": "string",
"x-go-name": "Started",
"example": "2006-01-02T15:04:05Z"
"format": "date-time",
"x-go-name": "Started"
},
"status": {
"description": "Status of the step",
Expand Down

0 comments on commit ce438de

Please sign in to comment.