| Issue 364: | Failing test with non-english locale | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Affected Version: MASTER
Environment: Winsodw
Failed tests:
testGetCauses_CreateSchema(com.google.gerrit.server.schema.SchemaCreatorTest)
The reason is that the test checks for a string and this string seems to be
translated. In my case the result is
Tabelle "SCHEMA_VERSION" nicht gefunden
Table "SCHEMA_VERSION" not found; SQL statement:
SELECT T.version_nbr,T.singleton FROM schema_version T WHERE T.singleton=?
[42102-125]
One solution might be to change line
com.google.gerrit.server.schema.SchemaCreatorTest 64-65:
final String msg = cause.getMessage();
assertEquals("Table \"SCHEMA_VERSION\" not found", msg.split(";")[0]);
to
final String msg = cause.getMessage().split(";")[0];
assertTrue(msg.endsWith("Table \"SCHEMA_VERSION\" not found"));
Dec 21, 2009
#1
sop@google.com
Status:
Accepted
Dec 21, 2009
Fixed by change Ibf458f96bb8ecb255b5deafe0fda97f78b968063. We now list the tables in the database instead of relying on the format of the error message.
Status:
Fixed
Labels: FixedOn-gwt-2.0
Oct 21, 2012
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |