Skip to content

Commit 283f77a

Browse files
committed
Relax mysql server version checks in unit tests.
1 parent bb7ee1b commit 283f77a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/DatabaseTest.php

+2-6
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,12 @@ public function testMysqliConnection()
2828

2929
$this->assertEquals(0, $c->connect_errno);
3030

31-
$this->assertTrue(in_array($c->server_version, [
32-
50505,
33-
50547,
34-
]));
35-
3631
// Don't know if we care about these.
3732
// This is what the development environment was.
3833
// We can remove these as we understand them better.
3934
$this->assertEquals(10, $c->protocol_version);
40-
$this->assertEquals(50011, $c->client_version);
35+
$this->assertGreaterThan(50000, $c->client_version);
36+
$this->assertGreaterThan(50000, $c->server_version);
4137
$this->assertEquals(0, $c->warning_count);
4238
$this->assertEquals('00000', $c->sqlstate);
4339
}

0 commit comments

Comments
 (0)