@@ -222,21 +222,17 @@ func TestGetGasPrice(t *testing.T) {
222222 }
223223
224224 // Assert Call succeeds when Anvil running
225- receipt_function := utils .GetGasPriceFunc (* client , * client )
226- _ , err = receipt_function ()
227- assert .NotNil (t , err , "Error Waiting for Transaction with Anvil Running: %s\n " , err )
228- if ! strings .Contains (err .Error (), "not found" ) {
229- t .Errorf ("WaitForTransactionReceipt Emitted incorrect error: %s\n " , err )
230- return
231- }
225+ gas_function := utils .GetGasPriceFunc (* client , * client )
226+ _ , err = gas_function ()
227+ assert .Nil (t , err , "Error Waiting for Transaction with Anvil Running: %s\n " , err )
232228
233229 if err = cmd .Process .Kill (); err != nil {
234230 t .Errorf ("Error killing process: %v\n " , err )
235231 return
236232 }
237233
238- receipt_function = utils .GetGasPriceFunc (* client , * client )
239- _ , err = receipt_function ()
234+ gas_function = utils .GetGasPriceFunc (* client , * client )
235+ _ , err = gas_function ()
240236 assert .NotNil (t , err )
241237 if _ , ok := err .(retry.PermanentError ); ok {
242238 t .Errorf ("WaitForTransactionReceipt Emitted non Transient error: %s\n " , err )
@@ -252,13 +248,9 @@ func TestGetGasPrice(t *testing.T) {
252248 t .Errorf ("Error setting up Anvil: %s\n " , err )
253249 }
254250
255- receipt_function = utils .GetGasPriceFunc (* client , * client )
256- _ , err = receipt_function ()
257- assert .NotNil (t , err )
258- if ! strings .Contains (err .Error (), "not found" ) {
259- t .Errorf ("WaitForTransactionReceipt Emitted incorrect error: %s\n " , err )
260- return
261- }
251+ gas_function = utils .GetGasPriceFunc (* client , * client )
252+ _ , err = gas_function ()
253+ assert .Nil (t , err )
262254
263255 if err := cmd .Process .Kill (); err != nil {
264256 t .Errorf ("Error killing process: %v\n " , err )
0 commit comments