diff --git a/core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php b/core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php index 519094f66be51793d868542d208bbbaab3268837..342ed0ec3a7b9de6a08eca5291e30a1a2ae0c53f 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php +++ b/core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php @@ -735,11 +735,16 @@ public function testChangePrimaryKeyToSerial(): void { } // Ensure auto numbering now works. + // We use a >= assertion to allow non-core drivers, that may have specific + // strategies on automatic incrementing, to run core tests. For example, + // Oracle will allocate a 10 id with the previous insert that was meant to + // fail; that id will be discarded, and the insert here will get a new 11 + // id instead. $id = $this->connection ->insert($table_name) ->fields(['test_field_string' => 'test']) ->execute(); - $this->assertEquals(10, $id); + $this->assertGreaterThanOrEqual(10, $id); } /**