diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-05-08 14:02:16 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-05-08 14:02:16 +0200 |
| commit | f40567d2553e8c162926cc48a122fff2a8c320ad (patch) | |
| tree | 23a503508326ee2bb17014e3d801683ff5db1d2c /pkg/csource/csource_test.go | |
| parent | 2b98fdbcbcac6e99d12c88857406ef446bcac872 (diff) | |
all: reformat code
Diffstat (limited to 'pkg/csource/csource_test.go')
| -rw-r--r-- | pkg/csource/csource_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go index d97833998..f8248499e 100644 --- a/pkg/csource/csource_test.go +++ b/pkg/csource/csource_test.go @@ -57,7 +57,7 @@ var executorOpts = Options{ func testTarget(t *testing.T, target *prog.Target, full bool) { seed := time.Now().UnixNano() - if os.Getenv( "CI") != "" { + if os.Getenv("CI") != "" { seed = 0 // required for deterministic coverage reports } rs := rand.NewSource(seed) @@ -98,7 +98,7 @@ func testOne(t *testing.T, p *prog.Prog, opts Options) { // Frequently lots of tests fail at the same, which produces/tmp/log // tens of thounds of lines of output. Limit amount of output. maxFailures := uint32(10) - if os.Getenv( "CI") != "" { + if os.Getenv("CI") != "" { maxFailures = 1 } if atomic.LoadUint32(&failedTests) > maxFailures { |
