Fixed test.

This commit is contained in:
irungentoo 2013-11-10 19:45:24 -05:00
parent 4943054742
commit 0a3f1f3aee

View File

@ -245,7 +245,7 @@ START_TEST(test_dht_state_saveloadsave)
ck_assert_msg(buffer[extra + size + i] == 0xCD, "Buffer overwritten from DHT_save() @%u", i);
}
int res = DHT_load_new(m->dht, buffer + extra, size);
int res = DHT_load(m->dht, buffer + extra, size);
if (res == -1)
ck_assert_msg(res == 0, "Failed to load back stored buffer: res == -1");