File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,18 +198,22 @@ jobs:
198198 # ---------- Run unit tests ----------
199199 - name : Run unit tests (Unix)
200200 if : runner.os != 'Windows'
201- timeout-minutes : 1
201+ timeout-minutes : 10
202202 shell : bash
203203 run : |
204204 build-release/bin/livekit_unit_tests \
205+ --gtest_repeat=100 \
206+ --gtest_brief=1 \
205207 --gtest_output=xml:build-release/unit-test-results.xml
206208
207209 - name : Run unit tests (Windows)
208210 if : runner.os == 'Windows'
209- timeout-minutes : 1
211+ timeout-minutes : 10
210212 shell : pwsh
211213 run : |
212214 build-release\bin\livekit_unit_tests.exe `
215+ --gtest_repeat=100 `
216+ --gtest_brief=1 `
213217 --gtest_output="xml:build-release\unit-test-results.xml"
214218
215219 # ---------- Install + start livekit-server for integration tests ----------
Original file line number Diff line number Diff line change @@ -408,8 +408,12 @@ void StopTracing() {
408408 // Disable tracing first to stop new events
409409 g_tracing_enabled.store (false , std::memory_order_release);
410410
411- // Signal writer thread to shut down
412- g_shutdown_requested.store (true );
411+ // Signal writer thread to shut down. The shutdown flag must be set while
412+ // holding g_mutex so the writer thread cannot miss the notification
413+ {
414+ const std::scoped_lock<std::mutex> lock (g_mutex);
415+ g_shutdown_requested.store (true );
416+ }
413417 g_cv.notify_one ();
414418
415419 // Wait for writer thread to finish
You can’t perform that action at this time.
0 commit comments