Skip to content

Commit 350ef14

Browse files
author
akankari
committed
Adding sleep to avoid travis build failure
1 parent 3850bcf commit 350ef14

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

PaymentTransactions/debit-bank-account.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def debit_bank_account():
4646

4747
if (response.messages.resultCode=="Ok"):
4848
print "Transaction ID : %s" % response.transactionResponse.transId
49-
print response.transactionResponse.messages.message[0].description
5049
else:
5150
print "response code: %s" % response.messages.resultCode
5251

test-runner.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import random
55
from authorizenet import apicontractsv1
66
import pyxb
7+
import time
78

89
class TestRunner(unittest.TestCase):
910
#pyxb.GlobalValidationConfig._setForBinding(False)
@@ -463,6 +464,8 @@ def create_subscription_from_customer_profile(self):
463464
modl = imp.load_source('modulename', 'CustomerProfiles/create-customer-shipping-address.py')
464465
shippingResponse = modl.create_customer_shipping_address(str(profileResponse.customerProfileId))
465466

467+
time.sleep(10)
468+
466469
#Create subscripiton from customer profile
467470
modl = imp.load_source('modulename', 'RecurringBilling/create-subscription-from-customer-profile.py')
468471
response = modl.create_subscription_from_customer_profile(self.getAmount(), self.getDay(), str(profileResponse.customerProfileId), str(paymentProfileResponse.customerPaymentProfileId), str(shippingResponse.customerAddressId))
@@ -593,7 +596,10 @@ def test_all_sample_codes(self):
593596

594597
if(shouldApiRun == '1'):
595598
for i in range(0, numRetries):
596-
#print("Running : " + apiName)
599+
600+
print "-------------------------------"
601+
print "Running : " + apiName
602+
print "-------------------------------"
597603
response = getattr(self, apiName)()
598604
#if(self.validate_response(response)):
599605
# succeeded.append(apiName)

0 commit comments

Comments
 (0)