This is an automated email from the ASF dual-hosted git repository.
qianzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push:
new 1a4516a Fixed the URI fetcher image fetch test failure on windows.
1a4516a is described below
commit 1a4516a6beb141e9080977bb8cf235095aedb7cd
Author: Gilbert Song <[email protected]>
AuthorDate: Fri Apr 12 17:13:58 2019 +0800
Fixed the URI fetcher image fetch test failure on windows.
Review: https://reviews.apache.org/r/70398/
---
src/tests/uri_fetcher_tests.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/tests/uri_fetcher_tests.cpp b/src/tests/uri_fetcher_tests.cpp
index f42ef01..55e75be 100644
--- a/src/tests/uri_fetcher_tests.cpp
+++ b/src/tests/uri_fetcher_tests.cpp
@@ -375,7 +375,8 @@ TEST_F(DockerFetcherPluginTest, INTERNET_CURL_FetchImage)
EXPECT_EQ("application/vnd.docker.distribution.manifest.v2+json",
manifest->mediatype());
- EXPECT_TRUE(os::exists(path::join(dir, manifest->config().digest())));
+ EXPECT_TRUE(os::exists(DockerFetcherPlugin::getBlobPath(
+ dir, manifest->config().digest())));
for (int i = 0; i < manifest->layers_size(); i++) {
EXPECT_TRUE(os::exists(
@@ -412,7 +413,8 @@ TEST_F(DockerFetcherPluginTest,
INTERNET_CURL_InvokeFetchByName)
EXPECT_EQ("application/vnd.docker.distribution.manifest.v2+json",
manifest->mediatype());
- EXPECT_TRUE(os::exists(path::join(dir, manifest->config().digest())));
+ EXPECT_TRUE(os::exists(DockerFetcherPlugin::getBlobPath(
+ dir, manifest->config().digest())));
for (int i = 0; i < manifest->layers_size(); i++) {
EXPECT_TRUE(os::exists(