Skip to content

Commit 37b869d

Browse files
committed
Update Version to reflect fsrepo change
License: MIT Signed-off-by: Zander Mackie <[email protected]>
1 parent 98ebae7 commit 37b869d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

repo/fsrepo/migrations/mfsr_test.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package mfsr
33
import (
44
"io/ioutil"
55
"os"
6+
"strconv"
67
"testing"
78

89
"github.com/ipfs/go-ipfs/thirdparty/assert"
@@ -28,13 +29,15 @@ func TestVersion(t *testing.T) {
2829
t.Fatalf("Should throw an `IsNotExist` error when file doesn't exist: %v", err)
2930
}
3031

31-
rp = testVersionFile("4", t)
32+
fsrepoV := 5
33+
34+
rp = testVersionFile(strconv.Itoa(fsrepoV), t)
3235
_, err = rp.Version()
3336
assert.Err(err, t, "Bad VersionFile")
3437

35-
assert.Nil(rp.WriteVersion(4), t, "Trouble writing version")
38+
assert.Nil(rp.WriteVersion(fsrepoV), t, "Trouble writing version")
3639

37-
assert.Nil(rp.CheckVersion(4), t, "Trouble checking the verion")
40+
assert.Nil(rp.CheckVersion(fsrepoV), t, "Trouble checking the verion")
3841

3942
assert.Err(rp.CheckVersion(1), t, "Should throw an error for the wrong version.")
4043
}

0 commit comments

Comments
 (0)