From d8f1aef7be716fda9568f90b8e9e5300e1831a52 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Tue, 6 Aug 2019 10:55:38 +0000 Subject: [PATCH] Added stats cache expire option for test --- test/integration-test-common.sh | 2 ++ test/integration-test-main.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/test/integration-test-common.sh b/test/integration-test-common.sh index ab0e096..bdfae75 100644 --- a/test/integration-test-common.sh +++ b/test/integration-test-common.sh @@ -193,6 +193,8 @@ function start_s3fs { -o createbucket \ ${AUTH_OPT} \ ${DIRECT_IO_OPT} \ + -o stat_cache_expire=1 \ + -o stat_cache_interval_expire=1 \ -o dbglevel=${DBGLEVEL:=info} \ -o retries=3 \ -f \ diff --git a/test/integration-test-main.sh b/test/integration-test-main.sh index aeab0bb..5d743c3 100755 --- a/test/integration-test-main.sh +++ b/test/integration-test-main.sh @@ -309,6 +309,7 @@ function test_external_modification { function test_read_external_object() { describe "create objects via aws CLI and read via s3fs" OBJECT_NAME="$(basename $PWD)/${TEST_TEXT_FILE}" + sleep 3 echo "test" | aws_cli cp - "s3://${TEST_BUCKET_1}/${OBJECT_NAME}" cmp ${TEST_TEXT_FILE} <(echo "test") rm -f ${TEST_TEXT_FILE}