Skip to content

Commit

Permalink
chore: fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Sep 23, 2022
1 parent e01ba0b commit a50822f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/crud/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func GetAddressCrud() *Crud[models.Address, models.AddressORM] {
addressCrudOnce.Do(func() {
AddressCrud = GetCrud(models.Address{}, models.AddressORM{})

// There is no loader channel for generic addresses -> only contracts
AddressCrud.Migrate()

// For main transformer - requires tuning due to many duplicate records
Expand Down
6 changes: 2 additions & 4 deletions src/crud/address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ func TestGetAddressCruds(t *testing.T) {
Address: "hxe694b4744cb1f5c13f381f3c4c94e05e74759e2c",
TransactionCount: 1,
}
GetAddressCrud().LoaderChannel <- address
GetAddressCrud()
AddressContractCrud.LoaderChannel <- address
time.Sleep(1 * time.Second)
}

Expand All @@ -26,9 +27,6 @@ func TestGetAddressRoutineCruds(t *testing.T) {
TransactionCount: 1,
}
GetAddressRoutineCruds()

AddressRoutineCruds["counts"].LoaderChannel <- address

//GetAddressRoutineCruds()["counts"].LoaderChannel <- address
time.Sleep(10 * time.Second)
}

0 comments on commit a50822f

Please sign in to comment.