Verified Commit d3c96ddf authored by Dave Long's avatar Dave Long
Browse files

Issue #3417721 by catch, kristiaanvandeneynde: Adjust performance tests to avoid random failures

parent 74fac8eb
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -35,7 +35,8 @@ public function testFrontPageAuthenticatedWarmCache(): void {
    $performance_data = $this->collectPerformanceData(function () {
      $this->drupalGet('<front>');
    }, 'authenticatedFrontPage');
    $this->assertSame(15, $performance_data->getQueryCount());
    $this->assertGreaterThanOrEqual(15, $performance_data->getQueryCount());
    $this->assertLessThanOrEqual(16, $performance_data->getQueryCount());
    $this->assertSame(43, $performance_data->getCacheGetCount());
    $this->assertSame(0, $performance_data->getCacheSetCount());
    $this->assertSame(0, $performance_data->getCacheDeleteCount());
+2 −1
Original line number Diff line number Diff line
@@ -105,7 +105,8 @@ public function testLogin(): void {
      $this->submitLoginForm($account);
    });

    $this->assertSame(38, $performance_data->getQueryCount());
    $this->assertGreaterThanOrEqual(38, $performance_data->getQueryCount());
    $this->assertLessThanOrEqual(39, $performance_data->getQueryCount());
    $this->assertSame(62, $performance_data->getCacheGetCount());
    $this->assertSame(1, $performance_data->getCacheSetCount());
    $this->assertSame(1, $performance_data->getCacheDeleteCount());