fix errors spotted by usage analysis

This commit is contained in:
Matthias Radestock committed 2016-01-26 18:13:29 +00:00
1 parent d220379ad3
commit 31f736b37e
3 files changed
+2 -9

No files matched your search

+1 -1
View File
@@ -155,7 +155,7 @@ func TestSpaceFree(t *testing.T) {
// Check we are full
ok, _ := space.Allocate(entireRange)
require.True(t, !ok, "Should have failed to get address")
r, ok = space.Donate(entireRange)
r, _ = space.Donate(entireRange)
require.True(t, r.Size() == 0, "Wrong space")
// Free in the middle