Skip to content

Commit 0e6eebc

Browse files
committed
tests: main: Check events instead of purging
Check the expected events instead of purging channels. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
1 parent ba23f3e commit 0e6eebc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/module/main/src/main.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ void test_trigger_interval_change_in_connected(void)
262262

263263
send_location_search_done();
264264
check_location_event(LOCATION_SEARCH_DONE);
265+
check_network_event(NETWORK_QUALITY_SAMPLE_REQUEST);
266+
check_power_event(POWER_BATTERY_PERCENTAGE_SAMPLE_REQUEST);
265267
}
266268

267269
/* Cleanup */
268-
purge_all_events();
269-
270270
send_cloud_disconnected();
271271
check_no_events(WEEK_IN_SECONDS);
272272
}
@@ -310,8 +310,6 @@ void test_trigger_disconnect_and_connect_when_triggering(void)
310310
}
311311

312312
/* Cleanup */
313-
purge_all_events();
314-
315313
send_cloud_disconnected();
316314
check_no_events(WEEK_IN_SECONDS);
317315
}

0 commit comments

Comments
 (0)