You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foriinrange(100): # run fewer number than regular Payloadless so total running time is close
388
+
result=sendReadOnlySlowPayloadless()
389
+
assert(result[0])
390
+
391
+
defforeverTransactions():
392
+
Print("foreverTransactions")
393
+
foriinrange(5): # run fewer number than slowPayloadless so total running time is close
394
+
result=sendReadOnlyForeverPayloadless()
395
+
assert(result[0] ==False) # should fail
396
+
397
+
deftimeoutTest():
398
+
Print("timeoutTest")
399
+
400
+
# Send a forever readonly transaction. It should timeout
401
+
Print("Sending a forever read only transaction")
402
+
results=sendReadOnlyForeverPayloadless()
403
+
# Results look like
404
+
'''
405
+
( False,
406
+
{'processed':
407
+
{
408
+
...
409
+
'except': {'code': 3080004, 'name': 'tx_cpu_usage_exceeded', 'message': 'Transaction exceeded the current CPU usage limit imposed on the transaction' ...}
0 commit comments