Skip to content

Commit

Permalink
Fix tests in ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikiyer56 committed Oct 1, 2024
1 parent e5edf19 commit 6197f9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/ticker/internal/scraper/asset_scraper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ func TestProcessAsset_notCached(t *testing.T) {
}))
asset := hProtocol.AssetStat{}
asset.Code = "SOMETHINGVALID"
asset.Accounts.Authorized = 1
asset.Balances.Authorized = "123.4"
asset.Links.Toml.Href = server.URL
tomlCache := &TOMLCache{}
finalAsset, err := processAsset(logger, asset, tomlCache, true)
Expand All @@ -160,6 +162,8 @@ func TestProcessAsset_cached(t *testing.T) {
logger := log.DefaultLogger
asset := hProtocol.AssetStat{}
asset.Code = "SOMETHINGVALID"
asset.Accounts.Authorized = 1
asset.Balances.Authorized = "123.4"
asset.Links.Toml.Href = "url"
tomlCache := &TOMLCache{}
tomlCache.Set("url", TOMLIssuer{SigningKey: "signing key"})
Expand Down

0 comments on commit 6197f9d

Please sign in to comment.