From b4718a246c17e2145c5cc4b23a7ff08f1fa427b9 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Tue, 30 Aug 2016 21:36:56 -0700 Subject: [PATCH] fix tests for changed migrations text License: MIT Signed-off-by: Jeromy --- test/sharness/t0066-migration.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/sharness/t0066-migration.sh b/test/sharness/t0066-migration.sh index 78689f323..facf0d0ae 100755 --- a/test/sharness/t0066-migration.sh +++ b/test/sharness/t0066-migration.sh @@ -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