File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
"crypto/x509"
9
9
"crypto/x509/pkix"
10
10
"encoding/gob"
11
- "strconv "
11
+ "fmt "
12
12
"testing"
13
13
14
14
"github.com/stretchr/testify/assert"
@@ -57,14 +57,14 @@ func TestHandlers_Register(t *testing.T) {
57
57
58
58
assert .NotNil (t , chain )
59
59
assert .Equal (t , chains [i ], chain )
60
- return errs .New (strconv . Itoa ( i ) )
60
+ return errs .New ("%v" , i )
61
61
}
62
62
},
63
63
)
64
64
handlers .Register (testHandler )
65
65
66
66
err = handlers [i ].NewHandlerFunc (opts [i ])(exts [i ], chains [i ])
67
- assert .Errorf (t , err , strconv . Itoa ( i ))
67
+ assert .Errorf (t , err , fmt . Sprintf ( "%v" , i ))
68
68
}
69
69
}
70
70
@@ -103,7 +103,7 @@ func TestHandlers_WithOptions(t *testing.T) {
103
103
104
104
assert .NotNil (t , chain )
105
105
assert .Equal (t , chains [i ], chain )
106
- return errs .New (strconv . Itoa ( i ) )
106
+ return errs .New ("%v" , i )
107
107
}
108
108
},
109
109
)
You can’t perform that action at this time.
0 commit comments