-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
…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
…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
integrationTests/relayers/ethToMultiversXWithChainSimulator_test.go
Outdated
Show resolved
Hide resolved
integrationTests/relayers/ethToMultiversXWithChainSimulator_test.go
Outdated
Show resolved
Hide resolved
integrationTests/relayers/ethToMultiversXWithChainSimulator_test.go
Outdated
Show resolved
Hide resolved
integrationTests/relayers/ethToMultiversXWithChainSimulator_test.go
Outdated
Show resolved
Hide resolved
integrationTests/relayers/ethToMultiversXWithChainSimulator_test.go
Outdated
Show resolved
Hide resolved
// 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{}) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to relayers_test
There was a problem hiding this comment.
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
integrationTests/relayers/ethToMultiversXWithChainSimulator_test.go
Outdated
Show resolved
Hide resolved
case <-interrupt: | ||
require.Fail(t, "signal interrupted") | ||
return | ||
case <-time.After(time.Minute * 15): |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use const?
No description provided.