We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57c1c59 commit d567dacCopy full SHA for d567dac
http_test.go
@@ -166,14 +166,12 @@ func TestHandleCompletedPart(t *testing.T) {
166
// Handle the completed part
167
downloader.handleCompletedPart(part, fileChan, stateSaveChan)
168
169
- // Verify the path was sent to fileChan
+ // We no longer send file paths via fileChan in handleCompletedPart
170
select {
171
- case path := <-fileChan:
172
- if path != part.Path {
173
- t.Errorf("Expected path %s, got %s", part.Path, path)
174
- }
+ case <-fileChan:
+ t.Errorf("Did not expect path to be sent to fileChan")
175
default:
176
- t.Errorf("No path sent to fileChan")
+ // ok
177
}
178
179
// Verify the part was sent to stateSaveChan
0 commit comments