Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix not_first_time flag handling in testsuite.

  • Loading branch information...
commit ba5bcda4949bb6b5440a17fa76639f4f32f20c19 1 parent 189bd99
@Infinoid authored
Showing with 4 additions and 2 deletions.
  1. +2 −1  t/novemberlog.t
  2. +2 −1  t/rakudolog.t
View
3  t/novemberlog.t
@@ -46,11 +46,12 @@ ok(!exists($$rl{lastrev}), "no lastrev by default");
call_func('process_branch', 'master', $feed);
my $output = [output()];
is(scalar @$output, 0, "nothing output the first time around");
-is($$rl{not_first_time}, 1, "not_first_time was set");
+is($$rl{not_first_time}, undef, "not_first_time was undef by default");
BEGIN { $tests += 3 };
# update
reset_output();
+$$rl{not_first_time} = 1;
$xml_footer = << '__XML__' . $xml_footer;
<entry>
<id>tag:github.com,2008:Grit::Commit/7f5af50c19baf360dacc5779b9c013fb14db34d3</id>
View
3  t/rakudolog.t
@@ -49,11 +49,12 @@ ok(!exists($$rl{lastrev}), "no lastrev by default");
call_func('process_branch', 'master', $feed);
my $output = [output()];
is(scalar @$output, 0, "nothing output the first time around");
-is($$rl{not_first_time}, 1, "not_first_time was set");
+is($$rl{not_first_time}, undef, "not_first_time was undef by default");
BEGIN { $tests += 3 };
# update
reset_output();
+$$rl{not_first_time} = 1;
$xml_footer = << '__XML__' . $xml_footer;
<entry>
<id>tag:github.com,2008:Grit::Commit/7f5af50c19baf360dacc5779b9c013fb14db34d3</id>
Please sign in to comment.
Something went wrong with that request. Please try again.