Commit 8f1bf296 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'fix-flaky-dast-profile-schedule-audit-spec' into 'master'

Fix flaky DAST profile schedule audit spec

See merge request gitlab-org/gitlab!77348
parents fc3ced13 40b9eea4
......@@ -104,7 +104,7 @@ RSpec.describe AppSec::Dast::Profiles::CreateService do
it 'audits the creation' do
schedule = subject.payload[:dast_profile_schedule]
audit_event = AuditEvent.find_by(target_id: schedule.id)
audit_event = AuditEvent.find_by(target_id: schedule.id, target_type: schedule.class)
aggregate_failures do
expect(audit_event.author).to eq(developer)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment