Skip to content

Commit 5cd3e34

Browse files
committed
test(sharness): migrate to the newer iptb
1 parent 98026e0 commit 5cd3e34

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

sharness/t0110-migration-6-to-7.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ test_description="Test migration 6 to 7"
88

99
export IPTB_ROOT="$(pwd)/.iptb"
1010
ipfsi() {
11-
dir="$1"
12-
shift
13-
IPFS_PATH="$IPTB_ROOT/$dir" ipfs "$@"
11+
dir="$1"
12+
shift
13+
IPFS_PATH="$IPTB_ROOT/testbeds/default/$dir" ipfs "$@"
1414
}
1515

1616
export DEBUG=true
@@ -29,7 +29,7 @@ test_install_ipfs_nd_6_7() {
2929
test_install_ipfs_nd_6_7 "v0.4.15"
3030

3131
test_expect_success "iptb init" '
32-
iptb init -n 2 --bootstrap none --port 0
32+
iptb testbed create -type localipfs -count 2 -init
3333
'
3434

3535
for i in 0 1
@@ -43,8 +43,8 @@ done
4343

4444
test_expect_success "generate keys" '
4545
ID1=$(ipfsi 0 id -f"<id>") &&
46-
ID2=$(ipfsi 0 key gen --type=rsa --size=512 second) &&
47-
ID3=$(ipfsi 0 key gen --type=rsa --size=512 third)
46+
ID2=$(ipfsi 0 key gen --type=rsa --size=2048 second) &&
47+
ID3=$(ipfsi 0 key gen --type=rsa --size=2048 third)
4848
'
4949

5050
i=0
@@ -85,7 +85,7 @@ test_resolve_fails() {
8585

8686
test_start_0() {
8787
test_expect_success "start cluster" '
88-
iptb start 0 --args --migrate=true && iptb connect 0 1 && go-sleep 3s
88+
iptb start -wait 0 -- --migrate=true && iptb connect 0 1 && go-sleep 3s
8989
'
9090
}
9191

@@ -97,7 +97,7 @@ test_stop_0() {
9797

9898
test_start() {
9999
test_expect_success "start cluster" '
100-
iptb start --args --migrate=true && iptb connect 0 1 && go-sleep 3s
100+
iptb start -wait -- --migrate=true && iptb connect 0 1 && go-sleep 3s
101101
'
102102
}
103103

@@ -133,12 +133,12 @@ test_resolution
133133
test_stop
134134

135135
test_expect_success "'ipfs-6-to-7 -revert' fails without -path" '
136-
test_must_fail iptb run 0 ipfs-6-to-7 -revert
136+
IPFS_PATH="$IPTB_ROOT/testbeds/default/0" test_must_fail ipfs-6-to-7 -revert
137137
'
138138

139139
test_expect_success "'ipfs-6-to-7 -revert' succeeds" '
140-
ipfs-6-to-7 -revert -path="$IPTB_ROOT/0" &&
141-
ipfs-6-to-7 -revert -path="$IPTB_ROOT/1"
140+
ipfs-6-to-7 -revert -path="$IPTB_ROOT/testbeds/default/0" &&
141+
ipfs-6-to-7 -revert -path="$IPTB_ROOT/testbeds/default/1"
142142
'
143143

144144
test_install_ipfs_nd "v0.4.15"

0 commit comments

Comments
 (0)