Skip to content

Commit

Permalink
Merge branch 'release/v1.1.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
i-vovk committed Nov 17, 2021
2 parents aa9303a + e9f14a8 commit 6314120
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
brew install boost
ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format"
ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy"
brew install openssl
# Run tests
- name: Test
run: .github/workflows/run.sh test
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 1.1.13 (2021-11-17)

### Bug Fixes

* connector: Fix data race for random generator
* tests/timeout: Remove time check for zero timeout

### Misc

* change googletest GIT_TAG to main
* workflow: Explicitly install openssl with brew
* readme: Add n.suboch to maintainers list


## 1.1.12 (2021-09-21)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

set(STREAMCLIENT_VERSION_MAJOR "1")
set(STREAMCLIENT_VERSION_MINOR "1")
set(STREAMCLIENT_VERSION_RELEASE "12")
set(STREAMCLIENT_VERSION_RELEASE "13")
set(STREAMCLIENT_SUMMARY "C++ library")
set(STREAMCLIENT_REPOSITORY_URL "https://github.com/TinkoffCreditSystems/stream-client")
set(STREAMCLIENT_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
Expand Down
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @i-vovk @suboch
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,4 @@ Distibuted under **Apache License 2.0** [LICENSE](./LICENSE). You may also obtai
## Contacts

Author - i.s.vovk@tinkoff.ru\
Current maintainer - i.s.vovk@tinkoff.ru
Current maintainers - i.s.vovk@tinkoff.ru, n.suboch@tinkoff.ru
4 changes: 2 additions & 2 deletions include/stream-client/connector/impl/connector.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace {
template <typename T>
void shuffle_vector(std::vector<T>& v)
{
static std::random_device r_device;
static std::mt19937 r_generator(r_device());
std::random_device r_device;
std::mt19937 r_generator(r_device());
std::shuffle(v.begin(), v.end(), r_generator);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ project(googletest-download NONE)
include(ExternalProject)
ExternalProject_Add(googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG master
GIT_TAG main
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-src"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-build"
CONFIGURE_COMMAND ""
Expand Down
4 changes: 0 additions & 4 deletions tests/timeout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ TYPED_TEST(ServerEnv, ConnectZeroTimeout)
using client_type = typename TestFixture::client_type;

// zero timeout should return immediately with timeout error
const auto start_t = std::chrono::steady_clock::now();
ASSERT_THROW_CODE(utils::make_client<client_type>(this->server_endpoint, std::chrono::milliseconds(0),
std::chrono::seconds(0), "localhost"),
boost::asio::error::timed_out);

const auto elapsed = std::chrono::steady_clock::now() - start_t;
EXPECT_TIME_LE(elapsed, std::chrono::milliseconds(50)); // actual time differs with sanitized builds
}

TEST_F(TCPServerEnv, ConnectTimeout)
Expand Down

0 comments on commit 6314120

Please sign in to comment.