@@ -164,7 +164,7 @@ func TestApp_Create(t *testing.T) {
164164 name : "create codespace with nonexistent machine results in error" ,
165165 fields : fields {
166166 apiClient : apiCreateDefaults (& apiClientMock {
167- GetCodespacesMachinesFunc : func (ctx context.Context , repoID int , branch , location string , devcontainerPath string ) ([]* api.Machine , error ) {
167+ GetCodespacesMachinesFunc : func (ctx context.Context , repoID int64 , branch , location string , devcontainerPath string ) ([]* api.Machine , error ) {
168168 return []* api.Machine {
169169 {
170170 Name : "GIGA" ,
@@ -208,7 +208,7 @@ func TestApp_Create(t *testing.T) {
208208 name : "create codespace with devcontainer path results in selecting the correct machine type" ,
209209 fields : fields {
210210 apiClient : apiCreateDefaults (& apiClientMock {
211- GetCodespacesMachinesFunc : func (ctx context.Context , repoID int , branch , location string , devcontainerPath string ) ([]* api.Machine , error ) {
211+ GetCodespacesMachinesFunc : func (ctx context.Context , repoID int64 , branch , location string , devcontainerPath string ) ([]* api.Machine , error ) {
212212 if devcontainerPath == "" {
213213 return []* api.Machine {
214214 {
@@ -270,7 +270,7 @@ func TestApp_Create(t *testing.T) {
270270 name : "create codespace with default branch with default devcontainer if no path provided and no devcontainer files exist in the repo" ,
271271 fields : fields {
272272 apiClient : apiCreateDefaults (& apiClientMock {
273- ListDevContainersFunc : func (ctx context.Context , repoID int , branch string , limit int ) ([]api.DevContainerEntry , error ) {
273+ ListDevContainersFunc : func (ctx context.Context , repoID int64 , branch string , limit int ) ([]api.DevContainerEntry , error ) {
274274 return []api.DevContainerEntry {}, nil
275275 },
276276 CreateCodespaceFunc : func (ctx context.Context , params * api.CreateCodespaceParams ) (* api.Codespace , error ) {
@@ -305,7 +305,7 @@ func TestApp_Create(t *testing.T) {
305305 name : "returns error when getting devcontainer paths fails" ,
306306 fields : fields {
307307 apiClient : apiCreateDefaults (& apiClientMock {
308- ListDevContainersFunc : func (ctx context.Context , repoID int , branch string , limit int ) ([]api.DevContainerEntry , error ) {
308+ ListDevContainersFunc : func (ctx context.Context , repoID int64 , branch string , limit int ) ([]api.DevContainerEntry , error ) {
309309 return nil , fmt .Errorf ("some error" )
310310 },
311311 }),
@@ -793,7 +793,7 @@ func TestHandleAdditionalPermissions(t *testing.T) {
793793 CreateCodespaceFunc : func (ctx context.Context , params * api.CreateCodespaceParams ) (* api.Codespace , error ) {
794794 return nil , tt .createCodespaceErr
795795 },
796- GetCodespacesPermissionsCheckFunc : func (ctx context.Context , repoID int , branch string , devcontainerPath string ) (bool , error ) {
796+ GetCodespacesPermissionsCheckFunc : func (ctx context.Context , repoID int64 , branch string , devcontainerPath string ) (bool , error ) {
797797 if tt .pollForPermissionsErr != nil {
798798 return false , tt .pollForPermissionsErr
799799 }
@@ -844,12 +844,12 @@ func apiCreateDefaults(c *apiClientMock) *apiClientMock {
844844 }
845845 }
846846 if c .ListDevContainersFunc == nil {
847- c .ListDevContainersFunc = func (ctx context.Context , repoID int , branch string , limit int ) ([]api.DevContainerEntry , error ) {
847+ c .ListDevContainersFunc = func (ctx context.Context , repoID int64 , branch string , limit int ) ([]api.DevContainerEntry , error ) {
848848 return []api.DevContainerEntry {{Path : ".devcontainer/devcontainer.json" }}, nil
849849 }
850850 }
851851 if c .GetCodespacesMachinesFunc == nil {
852- c .GetCodespacesMachinesFunc = func (ctx context.Context , repoID int , branch , location string , devcontainerPath string ) ([]* api.Machine , error ) {
852+ c .GetCodespacesMachinesFunc = func (ctx context.Context , repoID int64 , branch , location string , devcontainerPath string ) ([]* api.Machine , error ) {
853853 return []* api.Machine {
854854 {
855855 Name : "GIGA" ,
0 commit comments