Skip to contentSkip to conversation

multipath-tools tests: fix dmevents test after update_multipath change

PATCH In review Benjamin Marzinski 2 participants 2 messages Dec 19, 2023 – Jan 4, 2024 Device mapper

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH 1/1 multipath-tools tests: fix dmevents test after update_multipath change

The commit ("multipathd: don't modify the multipath device on show commands") changed the paramters for update_multipath(). Update the test to match.

---
 tests/dmevents.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
tests/dmevents.c +1 -2
index 68c4ad46..f08e6499 100644
@@ -332,13 +332,12 @@ void __wrap_remove_map_by_alias(const char *alias, struct vectors * vecs)
 /* pretend update the pretend dm devices. If fail is set, it
  * simulates having the dm device removed. Otherwise it just sets
  * update_nr to record when the update happened */
-int __wrap_update_multipath(struct vectors *vecs, char *mapname, int reset)
+int __wrap_update_multipath(struct vectors *vecs, char *mapname)
 {
 	int fail;
 
 	check_expected(mapname);
 	assert_ptr_equal(vecs, waiter->vecs);
-	assert_int_equal(reset, 1);
 	fail = mock_type(int);
 	if (fail) {
 		assert_int_equal(remove_dm_device_event(mapname), 0);
Signature · 1 line
2.41.0