Skip to content

Commit

Permalink
Add repro from yukang
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Jun 20, 2024
1 parent 3c14178 commit 688b4cb
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 448 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ body:json {
}

assert {
res.body.error: isUndefined
res.body.result.tlc_id: isDefined
res.body.error: isDefined
res.body.result: isUndefined
}

script:post-response {
// Sleep for sometime to make sure current operation finishes before next request starts.
await new Promise(r => setTimeout(r, 100));
bru.setVar("TLC_ID2", res.body.result.tlc_id);
// bru.setVar("TLC_ID2", res.body.result.tlc_id);
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ assert {
}

script:post-response {
console.log("step 9 response: ", res.body);
// Sleep for sometime to make sure current operation finishes before next request starts.
await new Promise(r => setTimeout(r, 100));
bru.setVar("TLC_ID3", res.body.result.tlc_id);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: remove tlc from NODE1
name: add tlc from NODE1
type: http
seq: 19
seq: 10
}

post {
Expand All @@ -19,14 +19,13 @@ body:json {
{
"id": "42",
"jsonrpc": "2.0",
"method": "remove_tlc",
"method": "add_tlc",
"params": [
{
"channel_id": "{{CHANNEL_ID}}",
"tlc_id": "{{TLC_ID5}}",
"reason": {
"payment_preimage": "0x0000000000000000000000000000000000000000000000000000000000000042"
}
"amount": "0x0",
"payment_hash": "0xcb7bce98a778f130d34da522623d7e56705bddfe0dc4781bd2331211134a19a5",
"expiry": 40
}
]
}
Expand All @@ -38,7 +37,7 @@ assert {
}

script:post-response {
console.log("step 10 response: ", res.body);
// Sleep for sometime to make sure current operation finishes before next request starts.
await new Promise(r => setTimeout(r, 100));
console.log(res.body);
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ body:json {
}

assert {
res.body.error: isUndefined
res.body.result.tlc_id: isDefined
res.body.error: isDefined
res.body.result: isUndefined
}

script:post-response {
console.log("step 10 response: ", res.body);
// Sleep for sometime to make sure current operation finishes before next request starts.
await new Promise(r => setTimeout(r, 100));
bru.setVar("TLC_ID4", res.body.result.tlc_id);
}
43 changes: 0 additions & 43 deletions tests/bruno/e2e/open-use-close-a-channel/11-add-tlc-from-NODE3.bru

This file was deleted.

43 changes: 0 additions & 43 deletions tests/bruno/e2e/open-use-close-a-channel/12-add-tlc-from-NODE3.bru

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 688b4cb

Please sign in to comment.