Skip to content

Commit

Permalink
removed dubious string in test
Browse files Browse the repository at this point in the history
  • Loading branch information
simue committed Feb 18, 2025
1 parent 461953b commit 4353d0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/session_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1021,11 +1021,11 @@ TEST(DifferentMethodTests, MultipleDeleteHeadPutGetPostTest) {
{
session.RemoveContent();
session.SetUrl(urlMultipartPost);
std::string fileContentsBinary{"kn3d0c9j213riknmfd039dj10idn2309cmxkle2rsdj0239mdf"};
std::string fileContentsBinary{"this is a binary payload"};
std::string fileExtension = ".myfile";
session.SetMultipart(cpr::Multipart{{"files", cpr::Buffer{fileContentsBinary.begin(), fileContentsBinary.end(), "myfile.jpg"}}, {"file_types", "[\"" + fileExtension + "\"]"}});
Response response = session.Post();
std::string expected_text{"{\n \"files\": \"myfile.jpg=kn3d0c9j213riknmfd039dj10idn2309cmxkle2rsdj0239mdf\",\n \"file_types\": \"[\".myfile\"]\"\n}"};
std::string expected_text{"{\n \"files\": \"myfile.jpg=this is a binary payload\",\n \"file_types\": \"[\".myfile\"]\"\n}"};
EXPECT_EQ(expected_text, response.text);
EXPECT_EQ(urlMultipartPost, response.url);
EXPECT_EQ(201, response.status_code);
Expand Down

0 comments on commit 4353d0b

Please sign in to comment.