Skip to content

Commit 4353d0b

Browse files
committed
removed dubious string in test
1 parent 461953b commit 4353d0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/session_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,11 +1021,11 @@ TEST(DifferentMethodTests, MultipleDeleteHeadPutGetPostTest) {
10211021
{
10221022
session.RemoveContent();
10231023
session.SetUrl(urlMultipartPost);
1024-
std::string fileContentsBinary{"kn3d0c9j213riknmfd039dj10idn2309cmxkle2rsdj0239mdf"};
1024+
std::string fileContentsBinary{"this is a binary payload"};
10251025
std::string fileExtension = ".myfile";
10261026
session.SetMultipart(cpr::Multipart{{"files", cpr::Buffer{fileContentsBinary.begin(), fileContentsBinary.end(), "myfile.jpg"}}, {"file_types", "[\"" + fileExtension + "\"]"}});
10271027
Response response = session.Post();
1028-
std::string expected_text{"{\n \"files\": \"myfile.jpg=kn3d0c9j213riknmfd039dj10idn2309cmxkle2rsdj0239mdf\",\n \"file_types\": \"[\".myfile\"]\"\n}"};
1028+
std::string expected_text{"{\n \"files\": \"myfile.jpg=this is a binary payload\",\n \"file_types\": \"[\".myfile\"]\"\n}"};
10291029
EXPECT_EQ(expected_text, response.text);
10301030
EXPECT_EQ(urlMultipartPost, response.url);
10311031
EXPECT_EQ(201, response.status_code);

0 commit comments

Comments
 (0)