Skip to content

Commit 0d2394c

Browse files
committed
test(pcapfilter): fix dropwatch.o path in TestApply
The BPF object lives under bpf/, not core/events/. Update the relative path from ../../core/events/dropwatch.o to ../../bpf/dropwatch.o. Signed-off-by: zhangtonghao <zhangtonghao@didiglobal.com> Signed-off-by: Tonghao Zhang <tonghao@bamaicloud.com>
1 parent d6e83b1 commit 0d2394c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/pcapfilter/load_default_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestApply(t *testing.T) {
6767
t.Skip("Skipping: requires root")
6868
}
6969

70-
origELF, err := os.ReadFile("../../core/events/dropwatch.o")
70+
origELF, err := os.ReadFile("../../bpf/dropwatch.o")
7171
if err != nil {
7272
t.Fatalf("Read error: %v", err)
7373
}

0 commit comments

Comments
 (0)