mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 22:08:01 +08:00
fix tests for changed migrations text
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
This commit is contained in:
parent
b213d69099
commit
b4718a246c
@ -23,11 +23,11 @@ test_expect_success "manually reset repo version to 3" '
|
||||
'
|
||||
|
||||
test_expect_success "ipfs daemon --migrate=false fails" '
|
||||
test_expect_code 1 ipfs daemon --migrate=false 2> false_out
|
||||
test_expect_code 1 ipfs daemon --migrate=false > false_out
|
||||
'
|
||||
|
||||
test_expect_success "output looks good" '
|
||||
grep "please run the migrations manually" false_out
|
||||
grep "Please get fs-repo-migrations from https://dist.ipfs.io" false_out
|
||||
'
|
||||
|
||||
test_expect_success "ipfs daemon --migrate=true runs migration" '
|
||||
@ -35,8 +35,8 @@ test_expect_success "ipfs daemon --migrate=true runs migration" '
|
||||
'
|
||||
|
||||
test_expect_success "output looks good" '
|
||||
grep "running migration" true_out > /dev/null &&
|
||||
grep "binary completed successfully" true_out > /dev/null
|
||||
grep "Running: " true_out > /dev/null &&
|
||||
grep "Success: fs-repo has been migrated to version 4." true_out > /dev/null
|
||||
'
|
||||
|
||||
test_expect_success "'ipfs daemon' prompts to auto migrate" '
|
||||
@ -44,9 +44,9 @@ test_expect_success "'ipfs daemon' prompts to auto migrate" '
|
||||
'
|
||||
|
||||
test_expect_success "output looks good" '
|
||||
grep "Found old repo version" daemon_out > /dev/null &&
|
||||
grep "Run migrations automatically?" daemon_out > /dev/null &&
|
||||
grep "please run the migrations manually" daemon_err > /dev/null
|
||||
grep "Found outdated fs-repo" daemon_out > /dev/null &&
|
||||
grep "Run migrations now?" daemon_out > /dev/null &&
|
||||
grep "Please get fs-repo-migrations from https://dist.ipfs.io" daemon_out > /dev/null
|
||||
'
|
||||
|
||||
test_done
|
||||
|
||||
Loading…
Reference in New Issue
Block a user