Skip to content

Commit

Permalink
added tests to verify we can list two names with provider memoize
Browse files Browse the repository at this point in the history
  • Loading branch information
bjartek committed Aug 5, 2024
1 parent 3c34078 commit 6dff601
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lease_market_sale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,23 @@ func TestLeaseMarketSale(t *testing.T) {
).
AssertFailure(t, "Seller banned by Tenant")
})


ot.Run(t, "Should be able to list two leases for sale", func(t *testing.T) {

otu.O.Tx("devRegisterDapper",
WithSigner("user5"),
WithPayloadSigner("dapper"),
WithArg("merchAccount", "dapper"),
WithArg("name", "name5"),
WithArg("amount", 5.0),
).AssertSuccess(otu.T)

otu.listLeaseForSaleDUC("user5", "user5", price)
otu.listLeaseForSaleDUC("user5", "name5", price)

itemsForSale := otu.getLeasesForSale("user5")
require.Equal(t, 2 , len(itemsForSale))

})
}

0 comments on commit 6dff601

Please sign in to comment.