Skip to content

Commit b5772a5

Browse files
Apply suggestions from code review
Co-authored-by: Andrew Hopkins <andhop@amazon.com>
1 parent 5cbb984 commit b5772a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ssl/ssl_test.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10472,13 +10472,13 @@ TEST(SSLTest, IntermittentEmptyRead) {
1047210472
// Create a fake read BIO that returns 0 on read to simulate empty read
1047310473
bssl::UniquePtr<BIO_METHOD> method(BIO_meth_new(0, nullptr));
1047410474
ASSERT_TRUE(method);
10475-
BIO_meth_set_create(method.get(), [](BIO *b) -> int {
10475+
ASSERT_TRUE(BIO_meth_set_create(method.get(), [](BIO *b) -> int {
1047610476
BIO_set_init(b, 1);
1047710477
return 1;
10478-
});
10479-
BIO_meth_set_read(method.get(), [](BIO *, char *, int) -> int {
10478+
}));
10479+
ASSERT_TRUE(BIO_meth_set_read(method.get(), [](BIO *, char *, int) -> int {
1048010480
return 0;
10481-
});
10481+
}));
1048210482
bssl::UniquePtr<BIO> rbio_empty(BIO_new(method.get()));
1048310483
ASSERT_TRUE(rbio_empty);
1048410484
BIO_set_flags(rbio_empty.get(), BIO_FLAGS_READ);

0 commit comments

Comments
 (0)