Skip to content

Commit

Permalink
fix(tests): correct function name casing in L1InfoTree initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
afa7789 committed Nov 7, 2024
1 parent 9cc7c43 commit e5e2e7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions zk/l1infotree/updater_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestUpdater_initialiseL1InfoTree(t *testing.T) {

// updater := NewUpdater(db)
// func initialiseL1InfoTree(hermezDb *hermez_db.HermezDb) (*L1InfoTree, error) {
l1infotree, err := initialiseL1InfoTree(db)
l1infotree, err := InitialiseL1InfoTree(db)
assert.NoError(t, err)
assert.NotNil(t, l1infotree)

Expand All @@ -71,7 +71,7 @@ func TestUpdater_createL1InfoTreeUpdate(t *testing.T) {
assert.NotNil(t, db)

// func createL1InfoTreeUpdate(hermezDb *hermez_db.HermezDb, l1InfoTree *L1InfoTree) (*zkTypes.L1InfoTreeUpdate, error) {
l1infotree, err := initialiseL1InfoTree(db)
l1infotree, err := InitialiseL1InfoTree(db)
assert.NoError(t, err)
assert.NotNil(t, l1infotree)

Expand Down
2 changes: 1 addition & 1 deletion zk/l1infotree/updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func TestUpdater_CheckForInfoTreeUpdates(t *testing.T) {
err := updater.WarmUp(tx)
assert.NoError(t, err)

_, err := updater.CheckForInfoTreeUpdates(
_, err = updater.CheckForInfoTreeUpdates(
"TestUpdater_CheckForInfoTreeUpdates",
tx,
)
Expand Down

0 comments on commit e5e2e7d

Please sign in to comment.