Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
rimashah25 committed Jan 18, 2024
1 parent 02b0798 commit f07b06b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Updated the CacheGroups Traffic Portal page to use a more performant AG-Grid-based table.

### Fixed
- [#7917](https://github.com/apache/trafficcontrol/issues/7917) *Traffic Ops* Removed `Alerts` field from struct `ProfileExportResponse`.
- [#7917](https://github.com/apache/trafficcontrol/pull/7917) *Traffic Ops* Removed `Alerts` field from struct `ProfileExportResponse`.
- [#7846](https://github.com/apache/trafficcontrol/pull/7846) *Traffic Portal* Increase State character limit

## [8.0.0] - 2023-09-20
Expand Down
2 changes: 1 addition & 1 deletion traffic_ops/testing/api/v3/profiles_export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestProfilesExport(t *testing.T) {
t.Run(name, func(t *testing.T) {
resp, reqInf, err := testCase.ClientSession.ExportProfile(testCase.EndpointID())
for _, check := range testCase.Expectations {
check(t, reqInf, resp, resp.Alerts, err)
check(t, reqInf, resp, tc.Alerts{nil}, err)

Check failure on line 57 in traffic_ops/testing/api/v3/profiles_export_test.go

View workflow job for this annotation

GitHub Actions / go-vet

github.com/apache/trafficcontrol/v8/lib/go-tc.Alerts struct literal uses unkeyed fields
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion traffic_ops/testing/api/v4/profiles_export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestProfilesExport(t *testing.T) {
t.Run(name, func(t *testing.T) {
resp, reqInf, err := testCase.ClientSession.ExportProfile(testCase.EndpointID(), testCase.RequestOpts)
for _, check := range testCase.Expectations {
check(t, reqInf, resp, resp.Alerts, err)
check(t, reqInf, resp, tc.Alerts{nil}, err)

Check failure on line 59 in traffic_ops/testing/api/v4/profiles_export_test.go

View workflow job for this annotation

GitHub Actions / go-vet

github.com/apache/trafficcontrol/v8/lib/go-tc.Alerts struct literal uses unkeyed fields
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion traffic_ops/testing/api/v5/profiles_export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestProfilesExport(t *testing.T) {
t.Run(name, func(t *testing.T) {
resp, reqInf, err := testCase.ClientSession.ExportProfile(testCase.EndpointID(), testCase.RequestOpts)
for _, check := range testCase.Expectations {
check(t, reqInf, resp, resp.Alerts, err)
check(t, reqInf, resp, tc.Alerts{nil}, err)

Check failure on line 58 in traffic_ops/testing/api/v5/profiles_export_test.go

View workflow job for this annotation

GitHub Actions / go-vet

github.com/apache/trafficcontrol/v8/lib/go-tc.Alerts struct literal uses unkeyed fields
}
})
}
Expand Down

0 comments on commit f07b06b

Please sign in to comment.