Skip to content

Commit

Permalink
Fix flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Nov 22, 2020
1 parent 0cbe4a4 commit 2781cae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Rcmail/HtmlPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function test_html_output()
$expected_body = '<body><div class="rcmail-inline-message rcmail-inline-warning"><span>Test</span>'
. '<p class="rcmail-inline-buttons"><button onclick="location.href = \'http://url\'">Button</button></p></div>';

$expected_link = '<link rel="stylesheet" type="text/css" href="skins/elastic/styles/embed.min.css';
$expected_link = '<link rel="stylesheet" type="text/css" href="skins/elastic/styles/embed.';

$this->assertTrue(strpos($output, '<html') === 0);
$this->assertTrue(strpos($output, $expected_body) !== false);
Expand Down
2 changes: 1 addition & 1 deletion tests/Rcmail/Oauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function test_get_redirect_uri()
{
$oauth = rcmail_oauth::get_instance();

$this->assertSame('http://:/./phpunit/index.php/login/oauth', $oauth->get_redirect_uri());
$this->assertRegexp('|^http://.*/index.php/login/oauth$|', $oauth->get_redirect_uri());
}

/**
Expand Down

0 comments on commit 2781cae

Please sign in to comment.