From 00d7f18eb35932826a6395c29c7225981543083d Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 16 Dec 2024 16:26:29 -0500 Subject: [PATCH] e2e-tests/solana: fix race condition w/ writing confirmed transaction to file --- e2e-tests/solana/offline.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e-tests/solana/offline.sh b/e2e-tests/solana/offline.sh index bd5e1f8..a35eca7 100644 --- a/e2e-tests/solana/offline.sh +++ b/e2e-tests/solana/offline.sh @@ -22,4 +22,5 @@ read _ echo "Creating and signing transaction" -icepick sol transfer-token "$token_amount" "$token_address" "$to_address" "$from_address" | icepick sol sign "$blockhash" > /data/output.json +icepick sol transfer-token "$token_amount" "$token_address" "$to_address" "$from_address" | icepick sol sign "$blockhash" > /data/output.json.tmp +mv /data/output.json.tmp /data/output.json