Skip to content

Commit a0bdfcc

Browse files
committed
Comply better with G/W/T ordering
1 parent 68cb46f commit a0bdfcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/tests/blob.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,14 @@ impl TestContext {
7373
async fn blob__upload_works() {
7474
// Given
7575
let mut ctx = TestContext::new().await;
76+
77+
// When
7678
let (status, blob_id) = ctx
7779
.new_blob([op::ret(RegId::ONE)].into_iter().collect())
7880
.await;
7981
assert!(matches!(status, TransactionStatus::Success { .. }));
8082

81-
// When
83+
// Then
8284
let script_tx = TransactionBuilder::script(
8385
vec![
8486
op::gtf_args(0x11, RegId::ZERO, GTFArgs::ScriptData),
@@ -97,8 +99,6 @@ async fn blob__upload_works() {
9799
.submit_and_await_commit(&script_tx)
98100
.await
99101
.unwrap();
100-
101-
// Then
102102
assert!(matches!(tx_status, TransactionStatus::Success { .. }));
103103
}
104104

0 commit comments

Comments
 (0)