Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
have Ginkgo always emit the full stack trace
it's pretty annoying how you don't get a call stack when a test fails in a function outside of the test module. and that seems to happen quite a bit, at least in my recent work. (tons of verification does happen in the `utils` module.) The same failure is depicted below before and after this change. Before: ``` [FAILED] Expected <*rpc.jsonError | 0xc002b0ba10>: execution reverted { Code: -32000, Message: "execution reverted", Data: nil, } to be nil In [It] at: /home/gene/dev/teleporter/tests/utils/utils.go:96 @ 11/22/23 15:42:22.261 < Exit [It] Send a message from Subnet A to Subnet B, and one from B to A - /home/gene/dev/teleporter/tests/e2e_test.go:58 @ 11/22/23 15:42:22.261 (6.075s) • [FAILED] [6.075 seconds] [Teleporter integration tests] /home/gene/dev/teleporter/tests/e2e_test.go:52 [It] Send a message from Subnet A to Subnet B, and one from B to A /home/gene/dev/teleporter/tests/e2e_test.go:58 ``` After: ``` [FAILED] Expected <*rpc.jsonError | 0xc0030805a0>: execution reverted { Code: -32000, Message: "execution reverted", Data: nil, } to be nil In [It] at: /home/gene/dev/teleporter/tests/utils/utils.go:96 @ 11/22/23 15:49:02.26 Full Stack Trace github.com/ava-labs/teleporter/tests/utils.SendCrossChainMessageAndWaitForAcceptance({_, _}, {{0xbc, 0x51, 0x19, 0xd5, 0x89, 0x4d, 0x58, 0x53, ...}, ...}, ...) /home/gene/dev/teleporter/tests/utils/utils.go:96 +0x163 github.com/ava-labs/teleporter/tests.BasicSendReceive({0x1d907d0, 0x38e1440}) /home/gene/dev/teleporter/tests/basic_send_receive.go:95 +0x79d github.com/ava-labs/teleporter/tests.BasicSendReceiveGinkgo() /home/gene/dev/teleporter/tests/basic_send_receive.go:17 +0x25 < Exit [It] Send a message from Subnet A to Subnet B, and one from B to A - /home/gene/dev/teleporter/tests/e2e_test.go:58 @ 11/22/23 15:49:02.26 (6.066s) • [FAILED] [6.066 seconds] [Teleporter integration tests] /home/gene/dev/teleporter/tests/e2e_test.go:52 [It] Send a message from Subnet A to Subnet B, and one from B to A /home/gene/dev/teleporter/tests/e2e_test.go:58 ``` Signed-off-by: F. Eugene Aumson <[email protected]>
- Loading branch information