Skip to content

Commit d567dac

Browse files
committed
fix tests
Signed-off-by: abzcoding <[email protected]>
1 parent 57c1c59 commit d567dac

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

http_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,12 @@ func TestHandleCompletedPart(t *testing.T) {
166166
// Handle the completed part
167167
downloader.handleCompletedPart(part, fileChan, stateSaveChan)
168168

169-
// Verify the path was sent to fileChan
169+
// We no longer send file paths via fileChan in handleCompletedPart
170170
select {
171-
case path := <-fileChan:
172-
if path != part.Path {
173-
t.Errorf("Expected path %s, got %s", part.Path, path)
174-
}
171+
case <-fileChan:
172+
t.Errorf("Did not expect path to be sent to fileChan")
175173
default:
176-
t.Errorf("No path sent to fileChan")
174+
// ok
177175
}
178176

179177
// Verify the part was sent to stateSaveChan

0 commit comments

Comments
 (0)