Skip to content

Commit

Permalink
[tests] Add const qualifier to string used for optlen testing
Browse files Browse the repository at this point in the history
  • Loading branch information
yomnes0 committed Jan 11, 2024
1 parent cb1e4ac commit 3d2fa08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_socket_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ TEST_F(TestSocketOptions, StreamIDWrongLen)
//Check if setting -1 as optlen returns an error
TEST_F(TestSocketOptions, StringOptLenInvalid)
{
string test_string = "test123";
const string test_string = "test123";
EXPECT_EQ(srt_setsockopt(m_caller_sock, 0, SRTO_STREAMID, test_string.c_str(), -1), SRT_ERROR);
EXPECT_EQ(srt_getlasterror(NULL), SRT_EINVPARAM);

Expand Down

0 comments on commit 3d2fa08

Please sign in to comment.