Skip to content

Commit

Permalink
fix: asd
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Oct 12, 2023
1 parent b14d630 commit 150e925
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/postage/stampissuer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,14 @@ func Test_StampIssuer_inc(t *testing.T) {
}

func TestUtilization(t *testing.T) {
// t.Skip("meant to be run for ad hoc testing")
t.Skip("meant to be run for ad hoc testing")

for depth := uint8(17); depth < 25; depth++ {
sti := postage.NewStampIssuer("label", "keyID", make([]byte, 32), big.NewInt(3), depth, postage.BucketDepth, 0, true)

var count uint64

eg := errgroup.Group{}
var eg errgroup.Group

for i := 0; i < 8; i++ {
eg.Go(func() error {
Expand All @@ -230,7 +230,7 @@ func TestUtilization(t *testing.T) {

err := eg.Wait()
if !errors.Is(err, postage.ErrBucketFull) {
t.Fatal("err should be bucket full")
t.Fatalf("want: %v; have: %v", postage.ErrBucketFull, err)
}

t.Logf("depth: %d, actual utilization: %f", depth, float64(count)/math.Pow(2, float64(depth)))
Expand Down

0 comments on commit 150e925

Please sign in to comment.