OpenMRS Core Master

Build: #1024 failed

Job: Build and Test failed

Stages & jobs

  1. Build and Test

  2. Deploy

  3. Release

    Requires a user to start manually

Get time should get Atime in the past: Test case result

The below summarizes the result of the test "Get time should get Atime in the past" in build 1,024 of OpenMRS Core - OpenMRS Core Master - Build and Test. View test case history
Description
Get time should get Atime in the past
Test class
org.openmrs.scheduler.web.controller.TaskHelperTest
Method
getTime_shouldGetATimeInThePast
Duration
< 1 sec
Status
Failed (New Failure)

Error Log

org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "UK_IVY1J18CM9UC9WCL0N0TSA6BQ_INDEX_2 ON PUBLIC.SCHEDULER_TASK_CONFIG(UUID) VALUES ('FA010D31-4040-4574-A083-315A781106FA', 3)"; SQL statement:
insert into SCHEDULER_TASK_CONFIG (TASK_CONFIG_ID, NAME, DESCRIPTION, SCHEDULABLE_CLASS, REPEAT_INTERVAL, STARTED, START_ON_STARTUP, UUID, CREATED_BY, DATE_CREATED) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23505-187]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
	at org.h2.message.DbException.get(DbException.java:179)
	at org.h2.message.DbException.get(DbException.java:155)
	at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:102)
	at org.h2.mvstore.db.MVSecondaryIndex.checkUnique(MVSecondaryIndex.java:233)
	at org.h2.mvstore.db.MVSecondaryIndex.add(MVSecondaryIndex.java:191)
	at org.h2.mvstore.db.MVTable.addRow(MVTable.java:638)
	at org.h2.command.dml.Insert.insertRows(Insert.java:156)
	at org.h2.command.dml.Insert.update(Insert.java:114)
	at org.h2.command.CommandContainer.update(CommandContainer.java:78)
	at org.h2.command.Command.executeUpdate(Command.java:254)
	at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:198)
	at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.execute(NewProxyPreparedStatement.java:823)
	at org.dbunit.database.statement.SimplePreparedStatement.addBatch(SimplePreparedStatement.java:80)
	at org.dbunit.operation.RefreshOperation$RowOperation.execute(RefreshOperation.java:183)
	at org.dbunit.operation.RefreshOperation$InsertRowOperation.execute(RefreshOperation.java:249)
	at org.dbunit.operation.RefreshOperation.execute(RefreshOperation.java:112)
	at org.openmrs.test.BaseContextSensitiveTest.executeDataSet(BaseContextSensitiveTest.java:750)
	at org.openmrs.test.BaseContextSensitiveTest.executeDataSet(BaseContextSensitiveTest.java:645)
	at org.openmrs.scheduler.web.controller.TaskHelperTest.setUp(TaskHelperTest.java:37)