Skip to content

Commit

Permalink
e2e: fix TestFormContract
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Aug 26, 2024
1 parent 59b04dd commit 6668d90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/test/e2e/contracts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ func TestFormContract(t *testing.T) {
tt.OK(err)

// form a contract using the bus
cs, _ := b.ConsensusState(context.Background())
wallet, _ := b.Wallet(context.Background())
endHeight := cs.BlockHeight + test.AutopilotConfig.Contracts.Period + test.AutopilotConfig.Contracts.RenewWindow
contract, err := b.FormContract(context.Background(), wallet.Address, types.Siacoins(1), h.PublicKey, h.NetAddress, types.Siacoins(1), endHeight)
ap, err := b.Autopilot(context.Background(), api.DefaultAutopilotID)
tt.OK(err)
contract, err := b.FormContract(context.Background(), wallet.Address, types.Siacoins(1), h.PublicKey, h.NetAddress, types.Siacoins(1), ap.EndHeight())
tt.OK(err)

// assert the contract was added to the bus
Expand Down

0 comments on commit 6668d90

Please sign in to comment.