Skip to content

Commit

Permalink
Update GetQuotaJson() tests
Browse files Browse the repository at this point in the history
  • Loading branch information
7or2ga committed Oct 10, 2024
1 parent b09c208 commit 7cb0af6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/credentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func TestGetQuotaJson(t *testing.T) {
t.Fatalf("Error parsing window from quota json")
}
window := int64(fWindow)
if window != int64(credsQuotaWindow(pb.OperatorType_OT_ROCKETPOOL)) {
if window != int64(credsQuotaWindow(pb.OperatorType_OT_ROCKETPOOL).Seconds()) {
t.Fatalf("Incorrect quota window. Expected %d, got %d", int64(credsQuotaWindow(pb.OperatorType_OT_ROCKETPOOL)), window)
}

Expand All @@ -360,7 +360,7 @@ func TestGetQuotaJson(t *testing.T) {
if !ok {
t.Fatalf("Error parsing authValidityWindow from quota json")
}
if authValidityWindow != int64(AuthValidityWindow(pb.OperatorType_OT_ROCKETPOOL)) {
if authValidityWindow != int64(AuthValidityWindow(pb.OperatorType_OT_ROCKETPOOL).Seconds()) {
t.Fatalf("Incorrect quota authValidityWindow. Expected %d, got %d", AuthValidityWindow(pb.OperatorType_OT_ROCKETPOOL), authValidityWindow)
}
}

0 comments on commit 7cb0af6

Please sign in to comment.