[Rt-commit] rtir branch, 3.2/inline-tests-fix, created. 3.2.0-22-g9b64e733
? sunnavy
sunnavy at bestpractical.com
Mon Mar 26 16:43:50 EDT 2018
The branch, 3.2/inline-tests-fix has been created
at 9b64e7330a362782d83b8469e497ff06893a57ea (commit)
- Log -----------------------------------------------------------------
commit 9b64e7330a362782d83b8469e497ff06893a57ea
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Mar 27 04:35:12 2018 +0800
Catch warnings of "Invalid context object RT::Queue (5) for CF..."
When creating an incident and investigation at the same time, since
Investigations queue doesn't have all of Incidents' custom fields, the
warnings pop up.
diff --git a/t/020-incident-and-investigation.t b/t/020-incident-and-investigation.t
index 2ca8c31a..61118ae5 100755
--- a/t/020-incident-and-investigation.t
+++ b/t/020-incident-and-investigation.t
@@ -42,6 +42,10 @@ $agent->display_ticket( $ir);
);
# regression test
$agent->content_unlike(qr{<li>Custom field (\d+) does not apply to this object</li>}, "Custom field allowed");
+ for ( 1 .. 4 ) {
+ $agent->next_warning_like( qr/Invalid context object RT::Queue \(5\) for CF \d+; skipping CF/,
+ "Investigations queue doesn't have incidents' all CFs" );
+ }
my $inc = RT::Ticket->new( $RT::SystemUser );
$inc->Load( $inc_id );
-----------------------------------------------------------------------
More information about the rt-commit
mailing list