Skip to content

Commit 3d3bd2b

Browse files
authored
Merge pull request #99 from jun06t/error-message
Fixed test error messages
2 parents 9c0e16f + 934d4ff commit 3d3bd2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

playstore/validator_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func TestNewWithClient(t *testing.T) {
7474
func TestAcknowledgeSubscription(t *testing.T) {
7575
t.Parallel()
7676
// Exception scenario
77-
expected := "googleapi: Error 404: No application was found for the given package name., applicationNotFound"
77+
expected := "googleapi: Error 400: Invalid Value, invalid"
7878

7979
client, _ := New(jsonKey)
8080
ctx := context.Background()
@@ -93,7 +93,7 @@ func TestAcknowledgeSubscription(t *testing.T) {
9393
func TestVerifySubscription(t *testing.T) {
9494
t.Parallel()
9595
// Exception scenario
96-
expected := "googleapi: Error 404: No application was found for the given package name., applicationNotFound"
96+
expected := "googleapi: Error 400: Invalid Value, invalid"
9797

9898
client, _ := New(jsonKey)
9999
ctx := context.Background()
@@ -121,7 +121,7 @@ func TestVerifySubscriptionAndroidPublisherError(t *testing.T) {
121121
func TestVerifyProduct(t *testing.T) {
122122
t.Parallel()
123123
// Exception scenario
124-
expected := "googleapi: Error 404: No application was found for the given package name., applicationNotFound"
124+
expected := "googleapi: Error 400: Invalid Value, invalid"
125125

126126
client, _ := New(jsonKey)
127127
ctx := context.Background()
@@ -159,7 +159,7 @@ func TestCancelSubscription(t *testing.T) {
159159
}
160160

161161
client, _ = New(jsonKey)
162-
expectedStr := "googleapi: Error 404: No application was found for the given package name., applicationNotFound"
162+
expectedStr := "googleapi: Error 400: Invalid Value, invalid"
163163
actual = client.CancelSubscription(ctx, "package", "productID", "purchaseToken")
164164

165165
if actual.Error() != expectedStr {

0 commit comments

Comments
 (0)