Skip to content

Commit 5bc41fd

Browse files
committed
test: remove pin once pin test is complete
1 parent 0e5acac commit 5bc41fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

link/link_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ func newPinnedRawLink(t *testing.T) (*RawLink, string) {
146146
func testLink(t *testing.T, link Link, prog *ebpf.Program) {
147147
t.Helper()
148148

149-
tmp := testutils.TempBPFFS(t)
150-
151149
_, isRawLink := link.(*RawLink)
152150

153151
t.Run("link/pinning", func(t *testing.T) {
152+
tmp := testutils.TempBPFFS(t)
153+
154154
path := filepath.Join(tmp, "link")
155155
err := link.Pin(path)
156156
testutils.SkipIfNotSupported(t, err)

0 commit comments

Comments
 (0)