The Islamic Republic knew in advance that the violation of the US naval blockade would be met with a US attack.
The Islamic Republic clearly knew from day one that if it broke through the US naval blockade, it would undoubtedly be the target of attacks. At least the US model in recent times regarding ships that were interested in circumventing the sanctions was like that. In any case, according to the usual tradition of the Islamic Republic, and in order to keep a group of "Meshenjis" (remember the word "Meshenj") and the regime's propaganda, although sometimes they tend to brag and make empty noise.