@@ -2,7 +2,7 @@ package sessionmanager
2
2
3
3
import (
4
4
"context"
5
- "fmt "
5
+ "strconv "
6
6
"sync"
7
7
"testing"
8
8
"time"
@@ -122,7 +122,7 @@ func TestReceiveFrom(t *testing.T) {
122
122
pm := & fakePeerManager {}
123
123
sm := New (ctx , sessionFactory , sim , peerManagerFactory , bpm , pm , notif , "" )
124
124
125
- p := peer .ID (fmt . Sprint (123 ))
125
+ p := peer .ID (strconv . Itoa (123 ))
126
126
block := blocks .NewBlock ([]byte ("block" ))
127
127
128
128
firstSession := sm .NewSession (ctx , time .Second , delay .Fixed (time .Minute )).(* fakeSession )
@@ -169,7 +169,7 @@ func TestReceiveBlocksWhenManagerShutdown(t *testing.T) {
169
169
pm := & fakePeerManager {}
170
170
sm := New (ctx , sessionFactory , sim , peerManagerFactory , bpm , pm , notif , "" )
171
171
172
- p := peer .ID (fmt . Sprint (123 ))
172
+ p := peer .ID (strconv . Itoa (123 ))
173
173
block := blocks .NewBlock ([]byte ("block" ))
174
174
175
175
firstSession := sm .NewSession (ctx , time .Second , delay .Fixed (time .Minute )).(* fakeSession )
@@ -203,7 +203,7 @@ func TestReceiveBlocksWhenSessionContextCancelled(t *testing.T) {
203
203
pm := & fakePeerManager {}
204
204
sm := New (ctx , sessionFactory , sim , peerManagerFactory , bpm , pm , notif , "" )
205
205
206
- p := peer .ID (fmt . Sprint (123 ))
206
+ p := peer .ID (strconv . Itoa (123 ))
207
207
block := blocks .NewBlock ([]byte ("block" ))
208
208
209
209
firstSession := sm .NewSession (ctx , time .Second , delay .Fixed (time .Minute )).(* fakeSession )
@@ -239,7 +239,7 @@ func TestShutdown(t *testing.T) {
239
239
pm := & fakePeerManager {}
240
240
sm := New (ctx , sessionFactory , sim , peerManagerFactory , bpm , pm , notif , "" )
241
241
242
- p := peer .ID (fmt . Sprint (123 ))
242
+ p := peer .ID (strconv . Itoa (123 ))
243
243
block := blocks .NewBlock ([]byte ("block" ))
244
244
cids := []cid.Cid {block .Cid ()}
245
245
firstSession := sm .NewSession (ctx , time .Second , delay .Fixed (time .Minute )).(* fakeSession )
0 commit comments