@@ -96,7 +96,7 @@ func TestNewDefaultTokenSourceClient(t *testing.T) {
96
96
func TestAcknowledgeSubscription (t * testing.T ) {
97
97
t .Parallel ()
98
98
// Exception scenario
99
- expected := "googleapi: Error 400: Invalid Value, invalid "
99
+ expected := "googleapi: Error 404: No application was found for the given package name., applicationNotFound "
100
100
101
101
client , _ := New (jsonKey )
102
102
ctx := context .Background ()
@@ -115,7 +115,7 @@ func TestAcknowledgeSubscription(t *testing.T) {
115
115
func TestVerifySubscription (t * testing.T ) {
116
116
t .Parallel ()
117
117
// Exception scenario
118
- expected := "googleapi: Error 400: Invalid Value, invalid "
118
+ expected := "googleapi: Error 404: No application was found for the given package name., applicationNotFound "
119
119
120
120
client , _ := New (jsonKey )
121
121
ctx := context .Background ()
@@ -131,7 +131,7 @@ func TestVerifySubscription(t *testing.T) {
131
131
func TestVerifySubscriptionV2 (t * testing.T ) {
132
132
t .Parallel ()
133
133
// Exception scenario
134
- expected := "googleapi: Error 400: Invalid Value, invalid "
134
+ expected := "googleapi: Error 404: No application was found for the given package name., applicationNotFound "
135
135
136
136
client , _ := New (jsonKey )
137
137
ctx := context .Background ()
@@ -147,7 +147,7 @@ func TestVerifySubscriptionV2(t *testing.T) {
147
147
func TestVerifyProduct (t * testing.T ) {
148
148
t .Parallel ()
149
149
// Exception scenario
150
- expected := "googleapi: Error 400: Invalid Value, invalid "
150
+ expected := "googleapi: Error 404: No application was found for the given package name., applicationNotFound "
151
151
152
152
client , _ := New (jsonKey )
153
153
ctx := context .Background ()
@@ -163,7 +163,7 @@ func TestVerifyProduct(t *testing.T) {
163
163
func TestAcknowledgeProduct (t * testing.T ) {
164
164
t .Parallel ()
165
165
// Exception scenario
166
- expected := "googleapi: Error 400: Invalid Value, invalid "
166
+ expected := "googleapi: Error 404: No application was found for the given package name., applicationNotFound "
167
167
168
168
client , _ := New (jsonKey )
169
169
ctx := context .Background ()
@@ -179,7 +179,7 @@ func TestAcknowledgeProduct(t *testing.T) {
179
179
func TestConsumeProduct (t * testing.T ) {
180
180
t .Parallel ()
181
181
// Exception scenario
182
- expected := "googleapi: Error 400: Invalid Value, invalid "
182
+ expected := "googleapi: Error 404: No application was found for the given package name., applicationNotFound "
183
183
184
184
client , _ := New (jsonKey )
185
185
ctx := context .Background ()
@@ -212,7 +212,7 @@ func TestCancelSubscription(t *testing.T) {
212
212
t .Parallel ()
213
213
ctx := context .Background ()
214
214
client , _ := New (jsonKey )
215
- expectedStr := "googleapi: Error 400: Invalid Value, invalid "
215
+ expectedStr := "googleapi: Error 404: No application was found for the given package name., applicationNotFound "
216
216
actual := client .CancelSubscription (ctx , "package" , "productID" , "purchaseToken" )
217
217
218
218
if actual == nil || actual .Error () != expectedStr {
0 commit comments