Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
74d156c8
Commit
74d156c8
authored
Nov 25, 2020
by
jamesge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some warnings
parent
e3782eb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
iobuf_unittest.cpp
test/iobuf_unittest.cpp
+2
-2
rand_util_unittest.cc
test/rand_util_unittest.cc
+2
-2
No files found.
test/iobuf_unittest.cpp
View file @
74d156c8
...
...
@@ -1660,7 +1660,7 @@ TEST_F(IOBufTest, append_user_data_and_share) {
TEST_F
(
IOBufTest
,
share_tls_block
)
{
butil
::
iobuf
::
remove_tls_block_chain
();
butil
::
IOBuf
::
Block
*
b
=
butil
::
iobuf
::
acquire_tls_block
();
ASSERT_EQ
(
0
,
butil
::
iobuf
::
block_size
(
b
));
ASSERT_EQ
(
0
u
,
butil
::
iobuf
::
block_size
(
b
));
butil
::
IOBuf
::
Block
*
b2
=
butil
::
iobuf
::
share_tls_block
();
butil
::
IOBuf
buf
;
...
...
@@ -1677,7 +1677,7 @@ TEST_F(IOBufTest, share_tls_block) {
}
// now tls block is b(full) -> b2(full) -> NULL
butil
::
IOBuf
::
Block
*
head_block
=
butil
::
iobuf
::
share_tls_block
();
ASSERT_EQ
(
0
,
butil
::
iobuf
::
block_size
(
head_block
));
ASSERT_EQ
(
0
u
,
butil
::
iobuf
::
block_size
(
head_block
));
ASSERT_NE
(
b
,
head_block
);
ASSERT_NE
(
b2
,
head_block
);
}
...
...
test/rand_util_unittest.cc
View file @
74d156c8
...
...
@@ -138,8 +138,8 @@ TEST(RandUtilTest, RandGeneratorIsUniform) {
// Don't quit too quickly for things to start converging, or we may have
// a false positive.
if
(
count
>
kMinAttempts
&&
kExpectedAverage
-
kAllowedVariance
<
cumulative_average
&&
cumulative_average
<
kExpectedAverage
+
kAllowedVariance
)
{
double
(
kExpectedAverage
-
kAllowedVariance
)
<
cumulative_average
&&
cumulative_average
<
double
(
kExpectedAverage
+
kAllowedVariance
)
)
{
break
;
}
...
...
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