Skip to content

Commit

Permalink
Fix non-deterministic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jveski committed Jul 3, 2024
1 parent 3adf901 commit e457830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/server/fixtures/paypal.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3 class="panel-title">Payment</h3>

<div class="panel-body">
<div class="alert alert-warning" role="alert">
We found a Paypal payment associated with your email address from 06/30/2024. Signing up here will cancel the Paypal subscription
We found a Paypal payment associated with your email address from 01/02/1970. Signing up here will cancel the Paypal subscription
while preserving the same price and interval.
<br><br>
<a href="/profile/stripe?price=paypal" role="button" class="btn btn-default">
Expand Down
2 changes: 1 addition & 1 deletion internal/server/ui_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestRenderProfile(t *testing.T) {
DiscountType: "developersdevelopersdevelopers",
PaypalMetadata: datamodel.PaypalMetadata{
Price: 6000,
TimeRFC3339: time.Now().UTC(),
TimeRFC3339: time.Unix(100000, 0).UTC().Add(-time.Hour),
TransactionID: "foobarbaz",
},
},
Expand Down

0 comments on commit e457830

Please sign in to comment.