insookwa
(Ivan Nsookwa)
August 25, 2020, 10:47pm
1
I am getting this error when i do mvn clean package.
[ERROR] Failures:
[ERROR] HibernateAlertDAOTest.getAlerts_shouldReturnAllAlertsWhenUserIsSpecified:69 expected: <0> but was: <1>
[ERROR] HibernateAlertDAOTest.getAllAlerts_shouldReturnOnlyNonExpiredAllerts:63 expected: <0> but was: <1>
[INFO]
[ERROR] Tests run: 4314, Failures: 2, Errors: 0, Skipped: 38
full log here : BUILD FAILURE - Pastebin.com
I only deleted Unused imports from different files . can you help me figure out the issue, please.
@mozzy @sharif @sacull
ayesh
(Ayeshmantha Perera)
August 25, 2020, 11:22pm
2
Both tests are working fine for me. Can u push the changes u did to you’r fork. I looked at the mock dataset I can see data as well.
Also the master branch build is passing locally as well.
<?xml version='1.0' encoding='UTF-8'?>
<!--
This Source Code Form is subject to the terms of the Mozilla Public License,
v. 2.0. If a copy of the MPL was not distributed with this file, You can
obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
graphic logo is a trademark of OpenMRS Inc.
-->
<dataset>
<notification_alert alert_id="2" creator="1" text="Testing hibernate Dao" date_created="2019-01-01 00:00:00.0" date_to_expire="2021-08-08 00:00:00.0" satisfied_by_any="1" alert_read="1" uuid="16914264-e162-11df-9195-001e378eb69e"/>
<notification_alert alert_id="3" creator="1" text="A running instance" date_created="2018-01-01 00:00:00.1" date_to_expire="2019-01-01 00:00:00.1" satisfied_by_any="1" alert_read="1" uuid="16914264-e162-11df-9195-001e378eb67e"/>
<users user_id="102" person_id="501" system_id="2-6" username="bruno" password="ff6d1655327d385e11a04e1632b4f33ceb8fafd2" salt="5d32c5fd9fde391c755f1f4dfd5e1d6e3debe6" secret_question="" creator="1" date_created="2008-08-15 15:46:47.0" changed_by="1" date_changed="2008-08-15 15:47:07.0" retired="false" uuid="c1d8f5c2-e131-11de-babe-001e378eb77e"/>
<notification_alert_recipient alert_id="2" user_id="102" alert_read="1" uuid="18514274-e162-11df-9195-001e378eb67e"/>
</dataset>
1 Like
sharif
(Sharif Magembe)
August 26, 2020, 2:57am
3
To add on @ayesh suggestion, did you first run openmrs core without your new changes and see whether its failing or running? Make sure its updated to latest changes
1 Like
insookwa
(Ivan Nsookwa)
August 26, 2020, 3:02am
4
it’s updated to the latest according to git pull --rebase upstream master
I have pushed the changes as @ayesh suggested
sharif
(Sharif Magembe)
August 26, 2020, 3:09am
5
is it still failing, can you share another log
sacull
(Lukasz Debicki)
August 26, 2020, 5:52am
6
The error may be because your master is a month old. Please update it.
First, add remote -> git remote add upstream https://github.com/openmrs/openmrs-core.git
Then update master branch -> git pull --rebase upstream master
1 Like
insookwa
(Ivan Nsookwa)
August 26, 2020, 5:54am
7
Thanks @sacull i did that prior to pushing
1 Like
insookwa
(Ivan Nsookwa)
August 26, 2020, 6:18am
8
it’s fine now thanks @sharif
1 Like