Skip to content

Commit 4266782

Browse files
committed
chore: delete redundant tool functions
1 parent 4014fca commit 4266782

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
sudo apt-get install -y libcurl4-openssl-dev libssl-dev \
6161
protobuf-compiler libprotobuf-dev libboost-dev \
6262
libboost-dev libboost-program-options-dev \
63-
libzstd-dev libsnappy-dev
63+
libzstd-dev libsnappy-dev libroaring-dev
6464
6565
- name: Build
6666
run: |

tests/BasicEndToEndTest.cc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3249,12 +3249,6 @@ TEST(BasicEndToEndTest, testNegativeAcksWithPartitions) {
32493249
testNegativeAcks(topicName, true);
32503250
}
32513251

3252-
int64_t getCurrentTimeMs() {
3253-
return std::chrono::duration_cast<std::chrono::milliseconds>(
3254-
std::chrono::system_clock::now().time_since_epoch())
3255-
.count();
3256-
}
3257-
32583252
void testNegativeAckPrecisionBitCnt(const std::string &topic, int precisionBitCnt) {
32593253
constexpr int delayMs = 2000;
32603254
const int64_t timeDeviation = 1L << precisionBitCnt;
@@ -3283,11 +3277,11 @@ void testNegativeAckPrecisionBitCnt(const std::string &topic, int precisionBitCn
32833277
consumer.receive(received);
32843278
consumer.negativeAcknowledge(received);
32853279

3286-
int64_t expectedRedeliveryTime = getCurrentTimeMs() + delayMs;
3280+
int64_t expectedRedeliveryTime = TimeUtils::currentTimeMillis() + delayMs;
32873281

32883282
Message redelivered;
32893283
consumer.receive(redelivered);
3290-
int64_t now = getCurrentTimeMs();
3284+
int64_t now = TimeUtils::currentTimeMillis();
32913285
ASSERT_GE(now, expectedRedeliveryTime - timeDeviation);
32923286
ASSERT_EQ(redelivered.getDataAsString(), "test-0");
32933287

0 commit comments

Comments
 (0)