File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package mfsr
3
3
import (
4
4
"io/ioutil"
5
5
"os"
6
+ "strconv"
6
7
"testing"
7
8
8
9
"github.com/ipfs/go-ipfs/thirdparty/assert"
@@ -28,13 +29,15 @@ func TestVersion(t *testing.T) {
28
29
t .Fatalf ("Should throw an `IsNotExist` error when file doesn't exist: %v" , err )
29
30
}
30
31
31
- rp = testVersionFile ("4" , t )
32
+ fsrepoV := 5
33
+
34
+ rp = testVersionFile (strconv .Itoa (fsrepoV ), t )
32
35
_ , err = rp .Version ()
33
36
assert .Err (err , t , "Bad VersionFile" )
34
37
35
- assert .Nil (rp .WriteVersion (4 ), t , "Trouble writing version" )
38
+ assert .Nil (rp .WriteVersion (fsrepoV ), t , "Trouble writing version" )
36
39
37
- assert .Nil (rp .CheckVersion (4 ), t , "Trouble checking the verion" )
40
+ assert .Nil (rp .CheckVersion (fsrepoV ), t , "Trouble checking the verion" )
38
41
39
42
assert .Err (rp .CheckVersion (1 ), t , "Should throw an error for the wrong version." )
40
43
}
You can’t perform that action at this time.
0 commit comments