Preserve device DM regression coverage with explicit mode
This commit is contained in:
1 parent
ce8f9d53f9
commit
c2e503a90a
3 files changed
+7
-6
No files matched your search
+2
-2
@@ -452,7 +452,7 @@ static void dm_tick(void* arg) {
|
||||
t->phase = P_SEND1;
|
||||
break;
|
||||
case P_SEND1:
|
||||
if (dm_start(A, nb, g_sh.x_pub[IDX_B], g_sh.ed_pub[IDX_B], "B", CH_ID) != 0
|
||||
if (dm_start(A, nb, g_sh.x_pub[IDX_B], g_sh.ed_pub[IDX_B], "B", CH_ID, DM_MODE_DEVICE, NULL) != 0
|
||||
|| dm_send(A, g_sh.conv_id, "text", (const uint8_t*)"hello1", 6) != 0 || protocol_checks(A, B, C) != 0) {
|
||||
fprintf(stderr, "A: dm_start/send hello1 failed\n");
|
||||
t->result = 2;
|
||||
@@ -592,7 +592,7 @@ static void dm2_tick(void* arg) {
|
||||
if (!bgp_has(A, nb)) t->phase = S2_SEND;
|
||||
break;
|
||||
case S2_SEND:
|
||||
if (dm_start(A, nb, g_sh.x_pub[IDX_B], g_sh.ed_pub[IDX_B], "B", CH_ID) != 0
|
||||
if (dm_start(A, nb, g_sh.x_pub[IDX_B], g_sh.ed_pub[IDX_B], "B", CH_ID, DM_MODE_DEVICE, NULL) != 0
|
||||
|| dm_send(A, g_sh.conv_id, "text", (const uint8_t*)"first", 5) != 0) {
|
||||
fprintf(stderr, "A: dm_start/send first failed\n");
|
||||
t->result = 2;
|
||||
|
||||
Reference in new issue
Block a user