Skip to content

Commit

Permalink
Add workaround for native module handle cleanup delay
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan Jowett committed Jun 17, 2024
1 parent 155519a commit 5c32e97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/end_to_end/end_to_end.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ ebpf_program_load(
}
}
bpf_object__close(new_object);
// Add delay to permit the native module handle cleanup to complete.
std::this_thread::sleep_for(std::chrono::milliseconds(100));
return error;
}

Expand Down

0 comments on commit 5c32e97

Please sign in to comment.