Lesson 5: test_simple_storage.py error message rolodex #235
-
At the ~4:50 mark, I successfully ran the test_deploy() function with no errors: However, when I run the test_updating_storage() function, it looks like my 2 tests run successfully, but it when goes to terminate the RPC client I get a slew of error messages: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The only thing that I can read that makes sense is "Web3 is not connected"... But if that's the case, then my first function should have returned similar errors, no? |
Beta Was this translation helpful? Give feedback.
-
This is a common bug. You need to In this case, do: tx = simple_storage.store(expected, {"from": account})
tx.wait(1) And you'll be all set! |
Beta Was this translation helpful? Give feedback.
This is a common bug. You need to
wait
whatever your last transaction is.In this case, do:
And you'll be all set!