Skip to content

Commit 597f291

Browse files
use common headers instead of duplicate symbol
1 parent f0b82a9 commit 597f291

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

src/tests/integration/test_rpc.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include <thread>
2828
#include <vector>
2929

30+
#include "../common/test_common.h"
31+
3032
namespace livekit::test {
3133

3234
using namespace std::chrono_literals;
@@ -88,18 +90,6 @@ std::string generateRandomPayload(size_t size) {
8890
return result.substr(0, size);
8991
}
9092

91-
// Wait for a remote participant to appear
92-
bool waitForParticipant(Room* room, const std::string& identity, std::chrono::milliseconds timeout) {
93-
auto start = std::chrono::steady_clock::now();
94-
while (std::chrono::steady_clock::now() - start < timeout) {
95-
if (room->remoteParticipant(identity) != nullptr) {
96-
return true;
97-
}
98-
std::this_thread::sleep_for(100ms);
99-
}
100-
return false;
101-
}
102-
10393
class RpcIntegrationTest : public ::testing::Test {
10494
protected:
10595
void SetUp() override {

0 commit comments

Comments
 (0)