File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -130,17 +130,17 @@ func (tp *provider) TestDhtProvide(t *testing.T) {
130
130
t .Fatal (err )
131
131
}
132
132
133
- provider := <- out
133
+ _ , ok := <- out
134
+
135
+ if ok {
136
+ t .Fatal ("did not expect to find any providers" )
137
+ }
134
138
135
139
self0 , err := apis [0 ].Key ().Self (ctx )
136
140
if err != nil {
137
141
t .Fatal (err )
138
142
}
139
143
140
- if provider .ID .String () != "<peer.ID >" {
141
- t .Errorf ("got wrong provider: %s != %s" , provider .ID .String (), self0 .ID ().String ())
142
- }
143
-
144
144
err = apis [0 ].Dht ().Provide (ctx , p )
145
145
if err != nil {
146
146
t .Fatal (err )
@@ -151,7 +151,7 @@ func (tp *provider) TestDhtProvide(t *testing.T) {
151
151
t .Fatal (err )
152
152
}
153
153
154
- provider = <- out
154
+ provider : = <- out
155
155
156
156
if provider .ID .String () != self0 .ID ().String () {
157
157
t .Errorf ("got wrong provider: %s != %s" , provider .ID .String (), self0 .ID ().String ())
You can’t perform that action at this time.
0 commit comments