Skip to content

test: fix e2e tests - #197

Merged
jacobhjkim merged 4 commits into
mainfrom
fix-e2e-tests
Aug 13, 2024
Merged

test: fix e2e tests#197
jacobhjkim merged 4 commits into
mainfrom
fix-e2e-tests

Conversation

@jacobhjkim

@jacobhjkim jacobhjkim commented Aug 12, 2024

Copy link
Copy Markdown
Contributor

PR Description

Fix e2e tests

We need to use a specific version of stretchr/testify to include this PR (stretchr/testify#1481). Without it, EventuallyWithT does not work well with require.

EventuallyWithT is preferable to plain Eventually because it shows exactly which condition is not met. For example, Eventually's error looks like this:

Error:      	Condition never satisfied

In contrast, EventuallyWithT's error log is more informative:

e2e_settlement_test.go:199:
    	Error Trace:	/Users/jacob/work/chain/tests/e2e/e2e_settlement_test.go:199
    	            				/opt/homebrew/Cellar/go/1.22.5/libexec/src/runtime/asm_arm64.s:1222
    	Error:      	Not equal:
    	            	expected: 3
    	            	actual  : 2
    	Test:       	TestIntegrationTestSuite/TestMintableContractTenant/create_new_tenant

@jacobhjkim jacobhjkim self-assigned this Aug 12, 2024
@jacobhjkim jacobhjkim changed the title [WIP] test: fix e2e tests test: fix e2e tests Aug 13, 2024
@jacobhjkim
jacobhjkim requested review from devbv and uhyunpark August 13, 2024 04:14
@jacobhjkim
jacobhjkim merged commit d732eeb into main Aug 13, 2024
@jacobhjkim
jacobhjkim deleted the fix-e2e-tests branch August 13, 2024 04:46
jacobhjkim added a commit that referenced this pull request Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants