Skip to content
Snippets Groups Projects
Commit d7ca4df0 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] test: add `reset all` before running the dump test

parent b554545c
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,10 @@ test: ...@@ -64,7 +64,10 @@ test:
script: script:
- yarn - yarn
- yarn test - yarn test
- bash .gitlab/test/check_indexes.sh # Clean the dump directory before testing
- rm -rf /tmp/duniter_ci_dump/
- bash .gitlab/test/check_indexes.sh /tmp/duniter_ci_dump/
# Code coverage
- cp -R coverage /tmp/coverage - cp -R coverage /tmp/coverage
- sed -n 23p coverage/index.html - sed -n 23p coverage/index.html
......
...@@ -31,7 +31,7 @@ sync_data() { ...@@ -31,7 +31,7 @@ sync_data() {
local db=$1 local db=$1
local target=$2 local target=$2
local target_block=$3 local target_block=$3
local reset_data="bin/duniter --mdb ${db} reset data" local reset_data="bin/duniter --mdb ${db} reset all"
local sync="bin/duniter --mdb ${db} sync ${target} --nointeractive ${target_block}" local sync="bin/duniter --mdb ${db} sync ${target} --nointeractive ${target_block}"
echo "$reset_data" echo "$reset_data"
${reset_data} ${reset_data}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment