Skip to content

Commit 253f144

Browse files
committed
test: Fix incorrect build status
1 parent 2338118 commit 253f144

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
File renamed without changes.

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ulog
22

3-
[![Build Status](https://travis-ci.org/shawnfeng0/ulog.svg?branch=master)](https://travis-ci.org/shawnfeng0/ulog)
3+
![Tests](https://github.com/ShawnFeng0/ulog/actions/workflows/tests.yml/badge.svg)
44

55
A library written in C/C ++ for printing logs of lightweight embedded devices.
66

Diff for: tests/mpsc_ring_test.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static void mq_test(const size_t buffer_size, const size_t write_thread_count, c
5050
auto read_entry = [=, &total_read_packet, &total_read_size] {
5151
typename Mq::Consumer consumer(umq);
5252

53-
while (auto data = consumer.ReadOrWait(std::chrono::milliseconds(1000))) {
53+
while (auto data = consumer.ReadOrWait(std::chrono::milliseconds(10))) {
5454
total_read_packet += data.remain();
5555
while (const auto packet = data.next()) {
5656
ASSERT_EQ(memcmp(data_source, packet.data, packet.size), 0);
@@ -71,4 +71,4 @@ static void mq_test(const size_t buffer_size, const size_t write_thread_count, c
7171
LOGGER_MULTI_TOKEN(total_write_size.load());
7272
}
7373

74-
TEST(MpscRingTest, multi_producer_single_consumer) { mq_test<ulog::mpsc::Mq>(64 * 1024, 32, 1024 * 100, 1); }
74+
TEST(MpscRingTest, multi_producer_single_consumer) { mq_test<ulog::mpsc::Mq>(64 * 1024, 4, 1024 * 100, 1); }

0 commit comments

Comments
 (0)