Skip to content

Commit

Permalink
fix: refine codes
Browse files Browse the repository at this point in the history
  • Loading branch information
halajohn committed Jan 9, 2025
1 parent e7a90de commit 986d907
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/include/ten_runtime/test/env_tester.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ TEN_RUNTIME_API bool ten_env_tester_on_start_done(ten_env_tester_t *self,
ten_error_t *err);

TEN_RUNTIME_API bool ten_env_tester_on_stop_done(ten_env_tester_t *self,
ten_error_t *err);
ten_error_t *err);

typedef void (*ten_env_tester_cmd_result_handler_func_t)(
ten_env_tester_t *self, ten_shared_ptr_t *cmd_result, void *user_data,
Expand Down
1 change: 1 addition & 0 deletions core/include/ten_runtime/test/extension_tester.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ typedef enum TEN_EXTENSION_TESTER_TEST_MODE {

typedef void (*ten_extension_tester_on_start_func_t)(
ten_extension_tester_t *self, ten_env_tester_t *ten_env);

typedef void (*ten_extension_tester_on_stop_func_t)(
ten_extension_tester_t *self, ten_env_tester_t *ten_env);

Expand Down
7 changes: 4 additions & 3 deletions core/src/ten_runtime/test/test_extension.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ static void test_extension_on_stop(ten_extension_t *self, ten_env_t *ten_env) {
test_extension_get_extension_tester_ptr(ten_env);
self->user_data = tester;

ten_runloop_post_task_tail(tester->tester_runloop,
ten_extension_tester_on_test_extension_stop_task,
tester, NULL);
int rc = ten_runloop_post_task_tail(
tester->tester_runloop, ten_extension_tester_on_test_extension_stop_task,
tester, NULL);
TEN_ASSERT(!rc, "Should not happen.");
}

void ten_builtin_test_extension_ten_env_notify_on_start_done(
Expand Down

0 comments on commit 986d907

Please sign in to comment.