Skip to content

Commit

Permalink
Merge branch 'master' into prateek/default-reporter-width
Browse files Browse the repository at this point in the history
  • Loading branch information
untoldwind committed Jun 26, 2018
2 parents a76dacf + ec01ab4 commit 4f66702
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion properties.go
Expand Up @@ -54,6 +54,6 @@ func (p *Properties) TestingRun(t *testing.T, opts ...interface{}) {
}
}
if !p.Run(reporter) {
t.Fail()
t.Errorf("failed with initial seed: %d", p.parameters.Seed)
}
}
2 changes: 2 additions & 0 deletions test_parameters.go
Expand Up @@ -13,6 +13,7 @@ type TestParameters struct {
// MaxSize is an (exclusive) upper limit on the size of the parameters
MaxSize int
MaxShrinkCount int
Seed int64
Rng *rand.Rand
Workers int
MaxDiscardRatio float64
Expand All @@ -27,6 +28,7 @@ func DefaultTestParameters() *TestParameters {
MinSize: 0,
MaxSize: 100,
MaxShrinkCount: 1000,
Seed: seed,
Rng: rand.New(rand.NewSource(seed)),
Workers: 1,
MaxDiscardRatio: 5,
Expand Down

0 comments on commit 4f66702

Please sign in to comment.