Skip to content

Commit

Permalink
Fix lint error on hvsock_test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jie Chen committed Dec 16, 2024
1 parent 4c4afcb commit c4aa00e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/functional/hvsock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func TestHVSock_UVM_HostBind(t *testing.T) {
return err
})

guestPath := share_self(ctx, t, vm, "")
guestPath := shareSelf(ctx, t, vm, "")

reexecCmd := fmt.Sprintf(`%s -test.run=%s`, guestPath, util.TestNameRegex(t))
if testing.Verbose() {
Expand Down Expand Up @@ -231,7 +231,7 @@ func TestHVSock_UVM_GuestBind(t *testing.T) {
ctx, cancel := context.WithTimeout(ctx, hvsockTestTimeout) //nolint:govet // ctx is shadowed
t.Cleanup(cancel)

guestPath := share_self(ctx, t, vm, "")
guestPath := shareSelf(ctx, t, vm, "")

reexecCmd := fmt.Sprintf(`%s -test.run=%s`, guestPath, util.TestNameRegex(t))
if testing.Verbose() {
Expand Down Expand Up @@ -1148,7 +1148,7 @@ func goBlockT[T any](f func() T) <-chan T {
return ch
}

func share_self(ctx context.Context, tb testing.TB, vm *uvm.UtilityVM, base string) string {
func shareSelf(ctx context.Context, tb testing.TB, vm *uvm.UtilityVM, base string) string {
tb.Helper()

if base == "" {
Expand Down

0 comments on commit c4aa00e

Please sign in to comment.