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

Commit

Permalink
modify harness
Browse files Browse the repository at this point in the history
  • Loading branch information
AmeanAsad committed Sep 19, 2023
1 parent af17595 commit 310c079
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions internal/util/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,12 @@ func WithComplianceCidPeriod(n int64) func(config *caboose.Config) {
}
}

func WithMirrorFraction(n float64) func(config *caboose.Config) {
return func(config *caboose.Config) {
config.MirrorFraction = n
}
}

func WithCidCoolDownDuration(duration time.Duration) func(config *caboose.Config) {
return func(config *caboose.Config) {
config.FetchKeyCoolDownDuration = duration
Expand Down
2 changes: 1 addition & 1 deletion pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestFetchComplianceCid(t *testing.T) {
t.Skip("skipping for 32bit architectures because too slow")
}

ch := util.BuildCabooseHarness(t, 1, 1, util.WithComplianceCidPeriod(1))
ch := util.BuildCabooseHarness(t, 1, 1, util.WithComplianceCidPeriod(1), util.WithMirrorFraction(1.0))

ch.CaboosePool.DoRefresh()

Expand Down

0 comments on commit 310c079

Please sign in to comment.