Skip to content

Commit

Permalink
test: add fast-catchup state to status
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Jan 2, 2025
1 parent e781e42 commit c322aca
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion internal/algod/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,23 @@ func Test_StatusModel(t *testing.T) {
}

catchpoint := "catchpoint"
m = m.Merge(api.StatusLike{LastRound: 10, Catchpoint: &catchpoint, CatchupTime: 0})
accountsTotal := 1000000
processedAccounts := 0
verifiedAccounts := 0
keyValueTotal := 1000
keyValueProcessed := 0
keyValueVerified := 0
m = m.Merge(api.StatusLike{
LastRound: 10,
Catchpoint: &catchpoint,
CatchupTime: 0,
CatchpointTotalAccounts: &accountsTotal,
CatchpointVerifiedAccounts: &verifiedAccounts,
CatchpointProcessedAccounts: &processedAccounts,
CatchpointTotalKvs: &keyValueTotal,
CatchpointProcessedKvs: &keyValueProcessed,
CatchpointVerifiedKvs: &keyValueVerified,
})
if m.State != FastCatchupState {
t.Errorf("expected State: %s, got %s", FastCatchupState, m.State)
}
Expand Down

0 comments on commit c322aca

Please sign in to comment.