From 934d4ffbbd0e5930e8dfd1515e70115c3cd5df33 Mon Sep 17 00:00:00 2001 From: Junpei Tsuji Date: Thu, 10 Oct 2019 10:58:16 +0900 Subject: [PATCH] Fixed test error messages --- playstore/validator_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/playstore/validator_test.go b/playstore/validator_test.go index 6677c49..709a4b1 100644 --- a/playstore/validator_test.go +++ b/playstore/validator_test.go @@ -74,7 +74,7 @@ func TestNewWithClient(t *testing.T) { func TestAcknowledgeSubscription(t *testing.T) { t.Parallel() // Exception scenario - expected := "googleapi: Error 404: No application was found for the given package name., applicationNotFound" + expected := "googleapi: Error 400: Invalid Value, invalid" client, _ := New(jsonKey) ctx := context.Background() @@ -93,7 +93,7 @@ func TestAcknowledgeSubscription(t *testing.T) { func TestVerifySubscription(t *testing.T) { t.Parallel() // Exception scenario - expected := "googleapi: Error 404: No application was found for the given package name., applicationNotFound" + expected := "googleapi: Error 400: Invalid Value, invalid" client, _ := New(jsonKey) ctx := context.Background() @@ -121,7 +121,7 @@ func TestVerifySubscriptionAndroidPublisherError(t *testing.T) { func TestVerifyProduct(t *testing.T) { t.Parallel() // Exception scenario - expected := "googleapi: Error 404: No application was found for the given package name., applicationNotFound" + expected := "googleapi: Error 400: Invalid Value, invalid" client, _ := New(jsonKey) ctx := context.Background() @@ -159,7 +159,7 @@ func TestCancelSubscription(t *testing.T) { } client, _ = New(jsonKey) - expectedStr := "googleapi: Error 404: No application was found for the given package name., applicationNotFound" + expectedStr := "googleapi: Error 400: Invalid Value, invalid" actual = client.CancelSubscription(ctx, "package", "productID", "purchaseToken") if actual.Error() != expectedStr {