summaryrefslogtreecommitdiffstats
path: root/tests/test_core.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-03 15:25:16 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-03 15:25:16 -0500
commit695e488b19d3b6884ccd7ca1010c8180484ccceb (patch)
treed15129d9c16bd0fb0289554925c10a38a5947085 /tests/test_core.c
parent3fe62dd9870c59e600eb6f51603a49325372979e (diff)
Clean up the primary diag request handler.
Diffstat (limited to 'tests/test_core.c')
-rw-r--r--tests/test_core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_core.c b/tests/test_core.c
index 6e1960a..16863a9 100644
--- a/tests/test_core.c
+++ b/tests/test_core.c
@@ -14,7 +14,6 @@ extern uint8_t last_can_payload_size;
void response_received_handler(const DiagnosticResponse* response) {
last_response_was_received = true;
- // TODO not sure if we can copy the struct like this
last_response_received = *response;
}
@@ -141,8 +140,8 @@ START_TEST (test_wrong_mode_response)
const uint8_t can_data[] = {0x4, 0x1 + 0x40, 0x0, 0x2, 0x45};
diagnostic_receive_can_frame(&SHIMS, &handle, arb_id + 0x8, can_data,
sizeof(can_data));
- fail_unless(last_response_was_received);
- fail_if(last_response_received.success);
+ fail_if(last_response_was_received);
+ fail_if(handle.completed);
}
END_TEST