Skip to content

Commit

Permalink
Resolve some test issues that travis has a hard time performing
Browse files Browse the repository at this point in the history
  • Loading branch information
drewjj committed Mar 21, 2024
1 parent a3b0ec1 commit 1302132
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public void testPublishBsmTxLogFile() throws Exception {
List<OdeData> dataList = testLogFileToAsn1CodecPublisher.publish(bis, filename, ImporterFileType.LOG_FILE);

for (OdeData data : dataList) {
assertTrue(DateTimeUtils.difference(DateTimeUtils.isoDateTime(data.getMetadata().getOdeReceivedAt()),
assertTrue(DateTimeUtils.difference(DateTimeUtils.isoDateTime(data.getMetadata().getRecordGeneratedAt()),
DateTimeUtils.nowZDT()) > 0);
data.getMetadata().setOdeReceivedAt("2019-03-05T20:31:17.579Z");
data.getMetadata().getSerialId().setStreamId("c7bbb42e-1e39-442d-98ac-62740ca50f92");
Expand Down Expand Up @@ -215,7 +215,7 @@ public void testPublishDistressNotificationLogFile() throws Exception {
List<OdeData> dataList = testLogFileToAsn1CodecPublisher.publish(bis, filename, ImporterFileType.LOG_FILE);

for (OdeData data : dataList) {
assertTrue(DateTimeUtils.difference(DateTimeUtils.isoDateTime(data.getMetadata().getOdeReceivedAt()),
assertTrue(DateTimeUtils.difference(DateTimeUtils.isoDateTime(data.getMetadata().getRecordGeneratedAt()),
DateTimeUtils.nowZDT()) > 0);
data.getMetadata().setOdeReceivedAt("2019-03-05T20:31:17.579Z");
data.getMetadata().getSerialId().setStreamId("c7bbb42e-1e39-442d-98ac-62740ca50f92");
Expand Down Expand Up @@ -247,7 +247,7 @@ public void testPublishDriverAlertLogFile() throws Exception {
List<OdeData> dataList = testLogFileToAsn1CodecPublisher.publish(bis, filename, ImporterFileType.LOG_FILE);

for (OdeData data : dataList) {
assertTrue(DateTimeUtils.difference(DateTimeUtils.isoDateTime(data.getMetadata().getOdeReceivedAt()),
assertTrue(DateTimeUtils.difference(DateTimeUtils.isoDateTime(data.getMetadata().getRecordGeneratedAt()),
DateTimeUtils.nowZDT()) > 0);
data.getMetadata().setOdeReceivedAt("2019-03-05T20:31:17.579Z");
data.getMetadata().getSerialId().setStreamId("c7bbb42e-1e39-442d-98ac-62740ca50f92");
Expand All @@ -266,7 +266,7 @@ public void testPublishRxMsgTIMLogFile() throws Exception {
(byte) 0x67, (byte) 0x06, (byte) 0x00, (byte) 0x00, // 2.3 elevation
(byte) 0x04, (byte) 0x00, // 2.3 speed
(byte) 0x09, (byte) 0x27, // 2.4 heading
(byte) 0xa9, (byte) 0x2c, (byte) 0xe2, (byte) 0x5a, // 3. utcTimeInSec
(byte) 0xa9, (byte) 0x2c, (byte) 0xe2, (byte) 0x5a, // 2. utcTimeInSec
(byte) 0x8f, (byte) 0x01, // 4. mSec
(byte) 0x00, // 5. securityResultCode
(byte) 0x06, (byte) 0x00, // 6.0 payloadLength
Expand All @@ -281,7 +281,7 @@ public void testPublishRxMsgTIMLogFile() throws Exception {
List<OdeData> dataList = testLogFileToAsn1CodecPublisher.publish(bis, filename, ImporterFileType.LOG_FILE);

for (OdeData data : dataList) {
assertTrue(DateTimeUtils.difference(DateTimeUtils.isoDateTime(data.getMetadata().getOdeReceivedAt()),
assertTrue(DateTimeUtils.difference(DateTimeUtils.isoDateTime(data.getMetadata().getRecordGeneratedAt()),
DateTimeUtils.nowZDT()) > 0);
data.getMetadata().setOdeReceivedAt("2019-03-05T20:31:17.579Z");
data.getMetadata().getSerialId().setStreamId("c7bbb42e-1e39-442d-98ac-62740ca50f92");
Expand Down Expand Up @@ -315,7 +315,7 @@ public void testPublishRxMsgBSMLogFile() throws Exception {
List<OdeData> dataList = testLogFileToAsn1CodecPublisher.publish(bis, filename, ImporterFileType.LOG_FILE);

for (OdeData data : dataList) {
assertTrue(DateTimeUtils.difference(DateTimeUtils.isoDateTime(data.getMetadata().getOdeReceivedAt()),
assertTrue(DateTimeUtils.difference(DateTimeUtils.isoDateTime(data.getMetadata().getRecordGeneratedAt()),
DateTimeUtils.nowZDT()) > 0);
data.getMetadata().setOdeReceivedAt("2019-03-05T20:31:17.579Z");
data.getMetadata().getSerialId().setStreamId("c7bbb42e-1e39-442d-98ac-62740ca50f92");
Expand Down Expand Up @@ -370,7 +370,7 @@ public void testPublishRxMsgBSMLogFileNewLine() throws Exception {
List<OdeData> dataList = testLogFileToAsn1CodecPublisher.publish(bis, filename, ImporterFileType.LOG_FILE);

for (OdeData data : dataList) {
assertTrue(DateTimeUtils.difference(DateTimeUtils.isoDateTime(data.getMetadata().getOdeReceivedAt()),
assertTrue(DateTimeUtils.difference(DateTimeUtils.isoDateTime(data.getMetadata().getRecordGeneratedAt()),
DateTimeUtils.nowZDT()) > 0);
data.getMetadata().setOdeReceivedAt("2019-03-05T20:31:17.579Z");
data.getMetadata().getSerialId().setStreamId("c7bbb42e-1e39-442d-98ac-62740ca50f92");
Expand Down

0 comments on commit 1302132

Please sign in to comment.