Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
Commits
5d28b384
Unverified
Commit
5d28b384
authored
Mar 06, 2020
by
Steven Allen
Committed by
GitHub
Mar 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: test with the race detector (#277)
parent
b647e029
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
.circleci/config.yml
.circleci/config.yml
+3
-0
bitswap_test.go
bitswap_test.go
+1
-1
No files found.
.circleci/config.yml
View file @
5d28b384
...
@@ -9,6 +9,9 @@ workflows:
...
@@ -9,6 +9,9 @@ workflows:
-
ci-go/build
-
ci-go/build
-
ci-go/lint
-
ci-go/lint
-
ci-go/test
-
ci-go/test
-
ci-go/test
:
race
:
true
name
:
"
ci-go/test/race"
-
ci-go/benchmark
:
-
ci-go/benchmark
:
tolerance
:
50
tolerance
:
50
requires
:
requires
:
...
...
bitswap_test.go
View file @
5d28b384
...
@@ -245,7 +245,7 @@ func TestLargeSwarm(t *testing.T) {
...
@@ -245,7 +245,7 @@ func TestLargeSwarm(t *testing.T) {
if
detectrace
.
WithRace
()
{
if
detectrace
.
WithRace
()
{
// when running with the race detector, 500 instances launches
// when running with the race detector, 500 instances launches
// well over 8k goroutines. This hits a race detector limit.
// well over 8k goroutines. This hits a race detector limit.
numInstances
=
5
0
numInstances
=
2
0
}
else
if
travis
.
IsRunning
()
{
}
else
if
travis
.
IsRunning
()
{
numInstances
=
200
numInstances
=
200
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment