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

More tests with simulated environments #295

Merged
merged 19 commits into from
Jun 26, 2024
Merged

More tests with simulated environments #295

merged 19 commits into from
Jun 26, 2024

Conversation

sstanculeanu
Copy link
Contributor

@sstanculeanu sstanculeanu commented Mar 15, 2024

No description provided.

…h-go into simulate_eth

# Conflicts:
#	clients/ethereum/wrappers/ethereumChainWrapper.go
#	clients/ethereum/wrappers/interface.go
#	clients/multiversx/interface.go
#	testsCommon/bridge/safeContractStub.go
#	testsCommon/interactors/proxyStub.go
@sstanculeanu sstanculeanu self-assigned this Mar 15, 2024
…e-eth-go into more_tests

# Conflicts:
#	clients/multiversx/interface.go
#	integrationTests/relayers/ethToMultiversXWithChainSimulator_test.go
#	integrationTests/relayers/testdata/contracts/mvx/bridged-tokens-wrapper.wasm
#	integrationTests/relayers/testdata/contracts/mvx/esdt-safe.wasm
#	integrationTests/relayers/testdata/contracts/mvx/multi-transfer-esdt.wasm
#	integrationTests/relayers/testdata/contracts/mvx/multisig.wasm
#	testsCommon/interactors/proxyStub.go
Base automatically changed from simulate_eth to feat/v3 June 26, 2024 07:35
@sstanculeanu sstanculeanu marked this pull request as ready for review June 26, 2024 07:45
@sstanculeanu sstanculeanu changed the title [DO NOT MERGE] More tests with simulated environments More tests with simulated environments Jun 26, 2024
 into more_tests

# Conflicts:
#	integrationTests/relayers/ethToMultiversXWithChainSimulator_test.go
@iulianpascalau iulianpascalau self-requested a review June 26, 2024 08:18
// start a mocked log observer that is looking for a specific relayer error
chanCnt := 0
mockLogObserver := mock.NewMockLogObserver(expectedStringInLogs)
err := logger.AddLogObserver(mockLogObserver, &logger.PlainFormatter{})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting approach. However, care should be taken when using static methods & variables as used in the logger package.
Maybe add some comment warnings to not run tests in parallel from the current package?
Better, create a dedicated package for these slow tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to relayers_test

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was referring to a new directory

case <-interrupt:
require.Fail(t, "signal interrupted")
return
case <-time.After(time.Minute * 15):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use const?

case <-interrupt:
require.Fail(t, "signal interrupted")
return
case <-time.After(time.Minute * 15):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use const?

case <-interrupt:
require.Fail(t, "signal interrupted")
return
case <-time.After(time.Minute * 15):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use const?

@dragos-rebegea dragos-rebegea merged commit b7f0009 into feat/v3 Jun 26, 2024
4 checks passed
@sstanculeanu sstanculeanu deleted the more_tests branch June 26, 2024 13:30
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.

3 participants