@cryptotaxi247 / kubo / commits / b4718a246

fix tests for changed migrations text

License: MIT Signed-off-by: Jeromy <why@ipfs.io>

Jeromy committed Aug 30, 2016 at 21:36 UTC b4718a246c17e2145c5cc4b23a7ff08f1fa427b9
1 file changed +7 -7
test/sharness/t0066-migration.sh
+7 -7
@@ -23,11 +23,11 @@ test_expect_success "manually reset repo version to 3" '
23 '
24
25 test_expect_success "ipfs daemon --migrate=false fails" '
26 - test_expect_code 1 ipfs daemon --migrate=false 2> false_out
26 + test_expect_code 1 ipfs daemon --migrate=false > false_out
27 '
28
29 test_expect_success "output looks good" '
30 - grep "please run the migrations manually" false_out
30 + grep "Please get fs-repo-migrations from https://dist.ipfs.io" false_out
31 '
32
33 test_expect_success "ipfs daemon --migrate=true runs migration" '
@@ -35,8 +35,8 @@ test_expect_success "ipfs daemon --migrate=true runs migration" '
35 '
36
37 test_expect_success "output looks good" '
38 - grep "running migration" true_out > /dev/null &&
39 - grep "binary completed successfully" true_out > /dev/null
38 + grep "Running: " true_out > /dev/null &&
39 + grep "Success: fs-repo has been migrated to version 4." true_out > /dev/null
40 '
41
42 test_expect_success "'ipfs daemon' prompts to auto migrate" '
@@ -44,9 +44,9 @@ test_expect_success "'ipfs daemon' prompts to auto migrate" '
44 '
45
46 test_expect_success "output looks good" '
47 - grep "Found old repo version" daemon_out > /dev/null &&
48 - grep "Run migrations automatically?" daemon_out > /dev/null &&
49 - grep "please run the migrations manually" daemon_err > /dev/null
47 + grep "Found outdated fs-repo" daemon_out > /dev/null &&
48 + grep "Run migrations now?" daemon_out > /dev/null &&
49 + grep "Please get fs-repo-migrations from https://dist.ipfs.io" daemon_out > /dev/null
50 '
51
52 test_done