Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b9063b4

Browse files
committedMay 12, 2015
remove unneccessary test
1 parent af66214 commit b9063b4

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed
 

‎exchange/bitswap/message/message_test.go

-17
Original file line numberDiff line numberDiff line change
@@ -169,20 +169,3 @@ func contains(strs []string, x string) bool {
169169
}
170170
return false
171171
}
172-
173-
func TestDuplicates(t *testing.T) {
174-
b := blocks.NewBlock([]byte("foo"))
175-
msg := New()
176-
177-
msg.AddEntry(b.Key(), 1)
178-
msg.AddEntry(b.Key(), 1)
179-
if len(msg.Wantlist()) != 1 {
180-
t.Fatal("Duplicate in BitSwapMessage")
181-
}
182-
183-
msg.AddBlock(b)
184-
msg.AddBlock(b)
185-
if len(msg.Blocks()) != 1 {
186-
t.Fatal("Duplicate in BitSwapMessage")
187-
}
188-
}

0 commit comments

Comments
 (0)
Please sign in to comment.