Skip to content

Commit

Permalink
publish.from unstable precision #9894
Browse files Browse the repository at this point in the history
  • Loading branch information
vbradnitski committed Dec 5, 2022
1 parent 829a1ac commit b0b82ee
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,18 @@ public void testPublishInfo()
final Content site = createSite();
this.contentService.publish( PushContentParams.create()
.contentIds( ContentIds.from( site.getId() ) )
.target( ContentConstants.BRANCH_MASTER )
.contentPublishInfo( ContentPublishInfo.create()
.from( Instant.parse( "2022-12-01T14:00:00.668487800Z" ) )
.to( Instant.parse( "2022-12-03T14:00:00.669487800Z" ) )
.to( Instant.parse( "2099-12-03T14:00:00.669487800Z" ) )
.build() )
.build() );

final Content publishedContent = ctxMaster().callWith( () -> this.contentService.getById( site.getId() ) );
final Content publishedContent = authorizedMasterContext().callWith( () -> this.contentService.getById( site.getId() ) );
assertNotNull( publishedContent );
assertNotNull( publishedContent.getPublishInfo() );
assertEquals( "2022-12-01T14:00:00.668Z", publishedContent.getPublishInfo().getFrom().toString() );
assertEquals( "2022-12-03T14:00:00.669Z", publishedContent.getPublishInfo().getTo().toString() );
assertEquals( "2099-12-03T14:00:00.669Z", publishedContent.getPublishInfo().getTo().toString() );
}

@Test
Expand Down

0 comments on commit b0b82ee

Please sign in to comment.