Skip to content

Commit

Permalink
WEB-361: Fix flaky date time test in RefTagUtils (#1561)
Browse files Browse the repository at this point in the history
* Fix flaky test

* Fix linter formatting issue

* Fix flaky reftagUtils test
  • Loading branch information
leighdouglas committed Mar 8, 2022
1 parent a4ffb42 commit fb0ab4c
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -11,6 +11,8 @@
import com.kickstarter.models.Urls;
import com.kickstarter.models.Web;

import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.junit.Test;

import java.net.CookieManager;
Expand Down Expand Up @@ -51,7 +53,8 @@ public void testStoredCookieRefTagForProject() {

@Test
public void testBuildCookieForRefTagAndProject_WithWellFormedUrl() {
final Project project = ProjectFactory.project();
final Project project = ProjectFactory.project().toBuilder().deadline(new DateTime(DateTimeZone.UTC).plusDays(10).plusSeconds(1)).build();

final RefTag refTag = RefTag.category();
final HttpCookie cookie = RefTagUtils.buildCookieWithRefTagAndProject(refTag, project);

Expand Down

0 comments on commit fb0ab4c

Please sign in to comment.