File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,16 @@ export STORAGE_ALLOW_INSECURE=true
21
21
echo " Install dependence"
22
22
python3 -m pip install --quiet mysql-connector-python
23
23
24
+ echo " Build dateoffset"
25
+ git clone https://github.com/batiati/dateoffset
26
+ pushd dateoffset
27
+ make
28
+ popd
29
+
30
+
24
31
echo " Starting standalone DatabendQuery(faked time: 2 days ago)"
25
- sudo date -s " -2 days"
32
+ LD_PRELOAD=./dateoffset/dateoffset.so \
33
+ DATE_OFFSET=$( date -d " -2 days" ' +%s' ) \
26
34
./scripts/ci/deploy/databend-query-standalone.sh
27
35
28
36
SCRIPT_PATH=" $( cd " $( dirname " $0 " ) " > /dev/null 2>&1 && pwd) "
@@ -32,8 +40,7 @@ echo "Preparing data (faked time)"
32
40
./databend-test --mode ' standalone' --run-dir 8_faked_time_prepare
33
41
34
42
popd
35
- echo " Starting standalone DatabendQuery"
36
- sudo date -s " +2 days"
43
+ echo " Starting standalone DatabendQuery (Normal time)"
37
44
./scripts/ci/deploy/databend-query-standalone.sh
38
45
39
46
pushd " $SCRIPT_PATH /../../tests" || exit
You can’t perform that action at this time.
0 commit comments