Update bay unit test

This commit is contained in:
Rodrigo Arias 2023-02-17 17:26:49 +01:00 committed by Rodrigo Arias Mallo
parent bc901f58c2
commit 4a1fba74f3

View File

@ -62,7 +62,7 @@ test_callback(struct bay *bay)
die("bay_register failed\n"); die("bay_register failed\n");
int64_t data = 0; int64_t data = 0;
if (bay_add_cb(bay, BAY_CB_DIRTY, &chan, callback, &data) != 0) if (bay_add_cb(bay, BAY_CB_DIRTY, &chan, callback, &data, 1) == NULL)
die("bay_add_cb failed\n"); die("bay_add_cb failed\n");
if (data != 0) if (data != 0)