From 23c2d537a3e02f59f8feacc871d1b61ca95d688c Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Thu, 14 Oct 2021 11:03:55 -0300 Subject: [PATCH] Maybe fix macos tests? --- tests/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/common.h b/tests/common.h index 6cfe623..f41b9d2 100644 --- a/tests/common.h +++ b/tests/common.h @@ -18,9 +18,9 @@ constexpr int TIME_DILATION = static auto startup = std::chrono::steady_clock::now(); /// Returns a localhost connection string to listen on. It can be considered random, though in -/// practice in the current implementation is sequential starting at 4500. +/// practice in the current implementation is sequential starting at 25432. inline std::string random_localhost() { - static uint16_t last = 4499; + static std::atomic last = 25432; last++; assert(last); // We should never call this enough to overflow return "tcp://127.0.0.1:" + std::to_string(last);