Fix file r/w race condition in integration test (#1496)

This commit is contained in:
Martin Chang 2023-01-28 13:19:16 +08:00 committed by GitHub
parent 36d7435d1d
commit 7d87d7e0b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -690,7 +690,7 @@ void doTest(const HttpClientPtr &client, std::shared_ptr<test::Case> TEST_CTX)
resp->getBody().begin()));
});
// Test file upload
UploadFile file1("./drogon.jpg");
UploadFile file1("./中文.txt");
UploadFile file2("./drogon.jpg", "drogon1.jpg");
UploadFile file3("./config.example.json", "config.json", "file3");
req = HttpRequest::newFileUploadRequest({file1, file2, file3});