Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
test lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Sep 28, 2023
1 parent 1f43dcd commit c29b432
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prover/capacity_manager/capacity_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ func (s *CapacityManagerTestSuite) TestReadCapacity() {

func (s *CapacityManagerTestSuite) TestReleaseOneCapacity() {
var blockID uint64 = 1
capacity, released := s.m.ReleaseOneCapacity(blockID)
_, released := s.m.ReleaseOneCapacity(blockID)
s.Equal(false, released)

capacity, ok := s.m.TakeOneCapacity(blockID)
_, ok := s.m.TakeOneCapacity(blockID)

s.Equal(true, ok)

capacity, released = s.m.ReleaseOneCapacity(blockID)
capacity, released := s.m.ReleaseOneCapacity(blockID)
s.Equal(true, released)

s.Equal(testCapacity+1, capacity)
Expand Down

0 comments on commit c29b432

Please sign in to comment.