@@ -19,6 +19,7 @@ import (
19
19
"errors"
20
20
"fmt"
21
21
"reflect"
22
+ "strconv"
22
23
"strings"
23
24
"sync"
24
25
"testing"
@@ -104,7 +105,7 @@ func (stream *mockStream) Context() context.Context {
104
105
func (stream * mockStream ) Send (resp * discovery.DiscoveryResponse ) error {
105
106
// check that nonce is monotonically incrementing
106
107
stream .nonce ++
107
- assert .Equal (stream .t , resp .GetNonce (), fmt . Sprintf ( "%d" , stream .nonce ))
108
+ assert .Equal (stream .t , resp .GetNonce (), strconv . Itoa ( stream .nonce ))
108
109
// check that version is set
109
110
assert .NotEmpty (stream .t , resp .GetVersionInfo ())
110
111
// check resources are non-empty
@@ -653,7 +654,7 @@ func TestOpaqueRequestsChannelMuxing(t *testing.T) {
653
654
Node : node ,
654
655
TypeUrl : fmt .Sprintf ("%s%d" , opaqueType , i % 2 ),
655
656
// each subsequent request is assumed to supercede the previous request
656
- ResourceNames : []string {fmt . Sprintf ( "%d" , i )},
657
+ ResourceNames : []string {strconv . Itoa ( i )},
657
658
}
658
659
}
659
660
close (resp .recv )
@@ -671,7 +672,7 @@ func TestNilPropagationOverResponseChannelShouldCloseTheStream(t *testing.T) {
671
672
Node : node ,
672
673
TypeUrl : nilType ,
673
674
// each subsequent request is assumed to supercede the previous request
674
- ResourceNames : []string {fmt . Sprintf ( "%d" , i )},
675
+ ResourceNames : []string {strconv . Itoa ( i )},
675
676
}
676
677
}
677
678
close (resp .recv )
0 commit comments