Skip to content

Commit feb1d2b

Browse files
committed
fix(amazon): correct the type
1 parent c8eb25c commit feb1d2b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

amazon/validator_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ func TestVerifySubscription(t *testing.T) {
115115
)
116116
defer server.Close()
117117

118+
freeTrialEndDate := int64(1561104377023)
119+
gracePeriodEndDate := int64(1561104377013)
120+
118121
expected := IAPResponse{
119122
ReceiptID: "q1YqVrJSSs7P1UvMTazKz9PLTCwoTswtyEktM9JLrShIzCvOzM-LL04tiTdW0lFKASo2NDEwMjCwMDM2MTC0AIqVAsUsLd1c4l18jIxdfTOK_N1d8kqLLHVLc8oK83OLgtPNCit9AoJdjJ3dXG2BGkqUrAxrAQ",
120123
ProductType: "SUBSCRIPTION",
@@ -126,9 +129,9 @@ func TestVerifySubscription(t *testing.T) {
126129
Quantity: 1,
127130
Term: "1 Week",
128131
TermSku: "sub1-weekly",
129-
FreeTrialEndDate: 1561104377023,
132+
FreeTrialEndDate: &freeTrialEndDate,
130133
AutoRenewing: false,
131-
GracePeriodEndDate: 1561104377013,
134+
GracePeriodEndDate: &gracePeriodEndDate,
132135
}
133136

134137
actual, _ := client.Verify(

0 commit comments

Comments
 (0)