diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c011afc..26f8def 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: test: name: Test - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: matrix: go: ['1.22', '1.23'] diff --git a/cancel_reason_value_test.go b/cancel_reason_value_test.go index 7d482c7..5118fc6 100644 --- a/cancel_reason_value_test.go +++ b/cancel_reason_value_test.go @@ -16,7 +16,7 @@ func TestNewCancelReason(t *testing.T) { }{ {"UNSUBSCRIBE", "UNSUBSCRIBE", nil}, {"BILLING_ERROR", "BILLING_ERROR", nil}, - {"INVALID", "", errors.New("cancelReason value should be one of the following: UNSUBSCRIBE,BILLING_ERROR,DEVELOPER_INITIATED,PRICE_INCREASE,CUSTOMER_SUPPORT,UNKNOWN, got INVALID")}, + {"INVALID", "", errors.New("cancelReason value should be one of the following: UNSUBSCRIBE,BILLING_ERROR,DEVELOPER_INITIATED,PRICE_INCREASE,CUSTOMER_SUPPORT,SUBSCRIPTION_PAUSED,UNKNOWN, got INVALID")}, } for _, c := range cases { diff --git a/event_type_value_test.go b/event_type_value_test.go index 6c129b9..182785a 100644 --- a/event_type_value_test.go +++ b/event_type_value_test.go @@ -16,7 +16,7 @@ func TestNewEventType(t *testing.T) { }{ {"INITIAL_PURCHASE", "INITIAL_PURCHASE", nil}, {"CANCELLATION", "CANCELLATION", nil}, - {"INVALID", "", errors.New("eventType value should be one of the following: TEST, INITIAL_PURCHASE, NON_RENEWING_PURCHASE, RENEWAL, PRODUCT_CHANGE, CANCELLATION, UNCANCELLATION, BILLING_ISSUE, SUBSCRIBER_ALIAS, SUBSCRIPTION_PAUSED, TRANSFER, EXPIRATION, got INVALID")}, + {"INVALID", "", errors.New("eventType value should be one of the following: TEST, INITIAL_PURCHASE, NON_RENEWING_PURCHASE, RENEWAL, PRODUCT_CHANGE, CANCELLATION, UNCANCELLATION, BILLING_ISSUE, SUBSCRIBER_ALIAS, SUBSCRIPTION_PAUSED, TRANSFER, EXPIRATION, SUBSCRIPTION_EXTENDED, TEMPORARY_ENTITLEMENT_GRANT, got INVALID")}, } for _, c := range cases {