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
p2p
go-flow-metrics
Commits
8ee3d596
Commit
8ee3d596
authored
Oct 11, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(test): flaky test
parent
0c5f74f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
flow_test.go
flow_test.go
+2
-2
No files found.
flow_test.go
View file @
8ee3d596
...
@@ -22,8 +22,8 @@ func TestBasic(t *testing.T) {
...
@@ -22,8 +22,8 @@ func TestBasic(t *testing.T) {
<-
ticker
.
C
<-
ticker
.
C
}
}
actual
:=
m
.
Snapshot
()
actual
:=
m
.
Snapshot
()
if
!
approxEq
(
actual
.
Rate
,
25000
,
5
00
)
{
if
!
approxEq
(
actual
.
Rate
,
25000
,
10
00
)
{
t
.
Errorf
(
"expected rate 25000 (±
5
00), got %f"
,
actual
.
Rate
)
t
.
Errorf
(
"expected rate 25000 (±
10
00), got %f"
,
actual
.
Rate
)
}
}
for
i
:=
0
;
i
<
200
;
i
++
{
for
i
:=
0
;
i
<
200
;
i
++
{
...
...
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