Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix e2e tests #197

Merged
merged 4 commits into from
Aug 13, 2024
Merged

test: fix e2e tests #197

merged 4 commits into from
Aug 13, 2024

Conversation

jacobhjkim
Copy link
Member

@jacobhjkim jacobhjkim commented Aug 12, 2024

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 merged commit d732eeb into main Aug 13, 2024
5 checks passed
@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