Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonNorthey92 committed Oct 25, 2024
1 parent a2c63e8 commit f0a2b72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions e2e/monitor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,13 @@ func monitorRolledUpTxs(ctx context.Context, s *state, mtx *sync.Mutex) {
console.log(Number.parseInt(hexValue, 16));
`

runJs := func(jsi string, layer string, ipcPath string) string {
runJs := func(jsi string, layer string, ipcPath string, replica string) string {
prefix := "op-"
if layer == "l1" {
prefix = ""
}

container := fmt.Sprintf("e2e-%sgeth-%s-1", prefix, layer)
container := fmt.Sprintf("e2e-%sgeth-%s-%s", prefix, layer, replica)
cmd := exec.Command(
"docker",
"exec",
Expand Down
3 changes: 1 addition & 2 deletions e2e/monitor/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ func TestMonitor(t *testing.T) {
t.Logf("expecting at least %d pop txs mined", expectedPopTxs)

// the expected balance should be at least 1 BaseHEMI per poptx - 8. We say
// "- 8" because we lag 8 keystones behind a pop payout (200 L2 blocks at
// 1 block per second)
// "- 8" because we lag 8 keystones behind a pop payout
expectedPayouts := expectedPopTxs - 8
expectedPayoutBalance := big.NewInt(hemi.HEMIBase)
expectedPayoutBalance = expectedPayoutBalance.Mul(big.NewInt(int64(expectedPayouts)), expectedPayoutBalance)
Expand Down

0 comments on commit f0a2b72

Please sign in to comment.