diff --git a/toREST/tests/include/SessionContext.hpp b/toREST/tests/include/SessionContext.hpp index 7c99580..5335635 100644 --- a/toREST/tests/include/SessionContext.hpp +++ b/toREST/tests/include/SessionContext.hpp @@ -28,7 +28,7 @@ class TestSession { public: bool valid = false; bool paused = false; - std::vector torrents; + std::vector torrents_; TestSessionSettings settings_; bool is_valid(); TestSessionSettings get_settings(); diff --git a/toREST/tests/stubs/SessionContext.cpp b/toREST/tests/stubs/SessionContext.cpp index 6353e93..dae902f 100644 --- a/toREST/tests/stubs/SessionContext.cpp +++ b/toREST/tests/stubs/SessionContext.cpp @@ -61,13 +61,13 @@ bool TestSession::is_dht_running() const { return settings_.enable_dht_; } std::vector &TestSession::get_torrents() { - return torrents; + return torrents_; } void TestSession::apply_settings(TestSessionSettings settings) { settings_ = settings; }; void TestSession::async_add_torrent(const libtorrent::add_torrent_params &settings) { - torrents.emplace_back(settings); + torrents_.emplace_back(settings); };