From 88b28c5228c8a70dd4daed2faf5f076bc2d63d53 Mon Sep 17 00:00:00 2001 From: Caleb Brose <5447118+cmbrose@users.noreply.github.com> Date: Tue, 2 Aug 2022 20:57:52 +0000 Subject: [PATCH] Fix api mock --- pkg/cmd/codespace/code_test.go | 4 ++-- pkg/cmd/codespace/logs_test.go | 4 ++-- pkg/cmd/codespace/ports_test.go | 4 ++-- pkg/cmd/codespace/ssh_test.go | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/cmd/codespace/code_test.go b/pkg/cmd/codespace/code_test.go index e7330c072..1f7562ae4 100644 --- a/pkg/cmd/codespace/code_test.go +++ b/pkg/cmd/codespace/code_test.go @@ -121,8 +121,8 @@ func testCodeApiMock() *apiClientMock { GetUserFunc: func(_ context.Context) (*api.User, error) { return user, nil }, - AuthorizedKeysFunc: func(_ context.Context, _ string) ([]byte, error) { - return []byte{}, nil + AuthorizedKeysFunc: func(_ context.Context, _ string) ([]string, error) { + return []string{}, nil }, } } diff --git a/pkg/cmd/codespace/logs_test.go b/pkg/cmd/codespace/logs_test.go index dcdf42557..49a97c47d 100644 --- a/pkg/cmd/codespace/logs_test.go +++ b/pkg/cmd/codespace/logs_test.go @@ -37,8 +37,8 @@ func testingLogsApp() *App { GetUserFunc: func(_ context.Context) (*api.User, error) { return user, nil }, - AuthorizedKeysFunc: func(_ context.Context, _ string) ([]byte, error) { - return []byte{}, nil + AuthorizedKeysFunc: func(_ context.Context, _ string) ([]string, error) { + return []string{}, nil }, } diff --git a/pkg/cmd/codespace/ports_test.go b/pkg/cmd/codespace/ports_test.go index 1a4d68481..e448a44f6 100644 --- a/pkg/cmd/codespace/ports_test.go +++ b/pkg/cmd/codespace/ports_test.go @@ -259,8 +259,8 @@ func testingPortsApp() *App { GetUserFunc: func(_ context.Context) (*api.User, error) { return user, nil }, - AuthorizedKeysFunc: func(_ context.Context, _ string) ([]byte, error) { - return []byte{}, nil + AuthorizedKeysFunc: func(_ context.Context, _ string) ([]string, error) { + return []string{}, nil }, } diff --git a/pkg/cmd/codespace/ssh_test.go b/pkg/cmd/codespace/ssh_test.go index 8bc6c517f..57f1f3ab4 100644 --- a/pkg/cmd/codespace/ssh_test.go +++ b/pkg/cmd/codespace/ssh_test.go @@ -141,8 +141,8 @@ func testingSSHApp() *App { GetUserFunc: func(_ context.Context) (*api.User, error) { return user, nil }, - AuthorizedKeysFunc: func(_ context.Context, _ string) ([]byte, error) { - return []byte{}, nil + AuthorizedKeysFunc: func(_ context.Context, _ string) ([]string, error) { + return []string{}, nil }, }