Skip to content

Commit

Permalink
Remove logging from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonhoc committed Mar 26, 2024
1 parent cd1e5b7 commit 143e39f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions modules/mobile/spec/request/facilities_info_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@
it 'logs the cache is nil and still returns alphabetized facilities' do
VCR.use_cassette('mobile/appointments/get_multiple_facilities_200', match_requests_on: %i[method uri]) do
get('/mobile/v0/facilities-info/appointments', headers: sis_headers)
expect(Rails.logger).to have_received(:info).with('mobile facilities info appointments cache nil',
user_uuid: user.uuid)
expect(response).to have_http_status(:ok)
expect(facilities[0]['name']).to eq('American Lake VA Medical Center')
expect(facilities[1]['name']).to eq('Ayton VA Medical Center')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@
context 'when military history discharge code is unknown' do
it 'logs an error and sets discharge values to nil' do
VCR.use_cassette('mobile/va_profile/post_read_service_histories_200_unknown_discharge_code') do
expect(Rails.logger).to receive(:error).with('Invalid discharge code', { code: 'Unknown' })
get '/mobile/v0/military-service-history', headers: sis_headers
expect(response).to have_http_status(:ok)
expect(JSON.parse(response.body)).to eq(expected_unknown_discharge)
Expand Down

0 comments on commit 143e39f

Please sign in to comment.