Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-astra-video committed Nov 12, 2024
1 parent 5941635 commit 2c9d066
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/livepeernode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,11 @@ func TestGetAllCapabilityPrices(t *testing.T) {
assert.Zero(n.GetBasePriceForCap("default", Capability_TextToImage, "default").Cmp(price))

addr1 := "0x0000000000000000000000000000000000000000"
addr2 := "0x1000000000000000000000000000000000000000"
price1 := big.NewRat(2, 1)
price2 := big.NewRat(3, 1)

n.SetBasePriceForCap(addr1, Capability_TextToImage, "default", NewFixedPrice(price1))
n.SetBasePriceForCap(addr2, Capability_ImageToImage, "default", NewFixedPrice(price2))
n.SetBasePriceForCap(addr1, Capability_ImageToImage, "default", NewFixedPrice(price2))

prices := n.GetCapsPrices(addr1)
modelPrice := prices.PriceForModelID(Capability_TextToImage, "default").Value()
Expand Down

0 comments on commit 2c9d066

Please sign in to comment.