Skip to content

Commit

Permalink
Fix master merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitryhil committed Dec 11, 2023
1 parent bbe1f3c commit 5710fa2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contract/src/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub fn handle_coreum_to_xrpl_transfer_confirmation(
match COREUM_TOKENS
.idx
.xrpl_currency
.item(storage, currency.to_owned())?
.item(storage, currency)?
.map(|(_, ct)| ct)
{
Some(token) => {
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/processes/send_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func TestSendXRPTokenFromXRPLToCoreumAndBack(t *testing.T) {

envCfg := DefaultRunnerEnvConfig()
runnerEnv := NewRunnerEnv(ctx, t, envCfg, chains)
runnerEnv.StartAllRunnerProcesses(ctx, t)
runnerEnv.StartAllRunnerProcesses()
runnerEnv.AllocateTickets(ctx, t, uint32(200))

coreumSender := chains.Coreum.GenAccount()
Expand Down
5 changes: 3 additions & 2 deletions integration-tests/xrpl/scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,12 @@ func TestRecentHistoryScanAccountTx(t *testing.T) {
spawn("scan", parallel.Continue, func(ctx context.Context) error {
return scanner.ScanTxs(ctx, txsCh)
})
spawn("write", parallel.Continue, func(ctx context.Context) error {
// write and exist
spawn("write", parallel.Exit, func(ctx context.Context) error {
writtenTxHashes = sendMultipleTxs(ctx, t, chains.XRPL, txsCount, senderAcc, recipientAcc)
return nil
})
spawn("wait", parallel.Exit, func(ctx context.Context) error {
spawn("wait", parallel.Continue, func(ctx context.Context) error {
t.Logf("Waiting for %d transactions to be scanned by the scanner", txsCount)
for tx := range txsCh {
receivedTxHashes[tx.GetHash().String()] = struct{}{}
Expand Down
3 changes: 2 additions & 1 deletion relayer/logger/zap.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ var _ ParallelLogger = &ParallelZapLogger{}

// ParallelZapLogger is parallel zap logger.
type ParallelZapLogger struct {
ctx context.Context //nolint:containedctx // the design depends on the parallel logger design where the ctx is set similar
//nolint:containedctx // the design depends on the parallel logger design where the ctx is set similar
ctx context.Context
zapLog *ZapLogger
}

Expand Down
2 changes: 1 addition & 1 deletion relayer/processes/xrpl_tx_observer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func TestXRPLTxObserver_Start(t *testing.T) {
tt.txScannerBuilder(ctrl, cancel),
contractClient,
)
require.NoError(t, o.Start(ctx))
require.ErrorIs(t, o.Start(ctx), context.Canceled)
})
}
}
Expand Down

0 comments on commit 5710fa2

Please sign in to comment.