re-add progressCallback

This commit is contained in:
nitowa
2024-10-14 16:27:25 +02:00
parent d345e87bf0
commit 18afeffcad
7 changed files with 26 additions and 27 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export const makeTestnetWallet = async () : Promise<Wallet> => {
}
}
export const htmlTxt = readFileSync(Path.resolve(__dirname, '..', '..', 'test', 'index.html')).toString('ascii')
export const htmlTxt = readFileSync(Path.resolve(__dirname, '..', '..', 'test', 'longhtml.html')).toString('ascii')
export const longText = `Software testing
From Wikipedia, the free encyclopedia
-1
View File
@@ -3,7 +3,6 @@
<head>
<script src="../lib/browser/xrpio.browser.js"></script>
<script src="./main.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous"/>
</head>
File diff suppressed because one or more lines are too long
-20
View File
@@ -81,8 +81,6 @@ describe('XRPIO', () => {
expect(cost).to.be.greaterThan(30)
})
let txHash
it('writeRaw', async function(){
this.timeout(15000)
@@ -161,24 +159,6 @@ describe('XRPIO', () => {
expect(data).to.be.equal(htmlTxt)
})
it('sends even if rate limit exceeded', async function(){
this.timeout(100 * 60 * 1000) //100m
console.log("Testing if sending past rate limits correctly recovers and finishes. This may take a while.")
await api.treeWrite(htmlTxt, receiveWallet.address, sendWallet.secret)
console.log("1/7")
await api.treeWrite(htmlTxt, receiveWallet.address, sendWallet.secret)
console.log("2/7")
await api.treeWrite(htmlTxt, receiveWallet.address, sendWallet.secret)
console.log("3/7")
await api.treeWrite(htmlTxt, receiveWallet.address, sendWallet.secret)
console.log("4/7")
await api.treeWrite(htmlTxt, receiveWallet.address, sendWallet.secret)
console.log("5/7")
await api.treeWrite(htmlTxt, receiveWallet.address, sendWallet.secret)
console.log("6/7")
await api.treeWrite(htmlTxt, receiveWallet.address, sendWallet.secret)
})
it('print open handles', function(){
api.disconnect().then(_ => {
wtf.dump()