diff --git a/test/sharness/t0300-docker-image.sh b/test/sharness/t0300-docker-image.sh index ec964cd0d7e1..3a67c2d89a49 100755 --- a/test/sharness/t0300-docker-image.sh +++ b/test/sharness/t0300-docker-image.sh @@ -66,6 +66,12 @@ test_expect_success "simple ipfs add/cat can be run in docker container" ' test_cmp expected actual ' +test_expect_success "version CurrentCommit is set" ' + actual=$(docker_exec "$DOC_ID" "wget --retry-connrefused --waitretry=1 --timeout=30 -t 30 \ + -q -O - http://localhost:8080/version" | grep CurrentCommit | cut -d" " -f2) + test_cmp 7 ${#actual} +' + test_expect_success "stop docker container" ' docker_stop "$DOC_ID" '