@@ -10,7 +10,7 @@ import { GitHubApiDetails } from "./api-client";
1010import * as apiClient from "./api-client" ;
1111import { createStubCodeQL } from "./codeql" ;
1212import { Config } from "./config-utils" ;
13- import { uploadDatabases } from "./database-upload" ;
13+ import { cleanupAndUploadDatabases } from "./database-upload" ;
1414import * as gitUtils from "./git-utils" ;
1515import { KnownLanguage } from "./languages" ;
1616import { RepositoryNwo } from "./repository" ;
@@ -91,7 +91,7 @@ test("Abort database upload if 'upload-database' input set to false", async (t)
9191 sinon . stub ( gitUtils , "isAnalyzingDefaultBranch" ) . resolves ( true ) ;
9292
9393 const loggedMessages = [ ] ;
94- await uploadDatabases (
94+ await cleanupAndUploadDatabases (
9595 testRepoName ,
9696 getCodeQL ( ) ,
9797 getTestConfig ( tmpDir ) ,
@@ -121,7 +121,7 @@ test("Abort database upload if 'analysis-kinds: code-scanning' is not enabled",
121121 await mockHttpRequests ( 201 ) ;
122122
123123 const loggedMessages = [ ] ;
124- await uploadDatabases (
124+ await cleanupAndUploadDatabases (
125125 testRepoName ,
126126 getCodeQL ( ) ,
127127 {
@@ -155,7 +155,7 @@ test("Abort database upload if running against GHES", async (t) => {
155155 config . gitHubVersion = { type : GitHubVariant . GHES , version : "3.0" } ;
156156
157157 const loggedMessages = [ ] ;
158- await uploadDatabases (
158+ await cleanupAndUploadDatabases (
159159 testRepoName ,
160160 getCodeQL ( ) ,
161161 config ,
@@ -183,7 +183,7 @@ test("Abort database upload if not analyzing default branch", async (t) => {
183183 sinon . stub ( gitUtils , "isAnalyzingDefaultBranch" ) . resolves ( false ) ;
184184
185185 const loggedMessages = [ ] ;
186- await uploadDatabases (
186+ await cleanupAndUploadDatabases (
187187 testRepoName ,
188188 getCodeQL ( ) ,
189189 getTestConfig ( tmpDir ) ,
@@ -212,7 +212,7 @@ test("Don't crash if uploading a database fails", async (t) => {
212212 await mockHttpRequests ( 500 ) ;
213213
214214 const loggedMessages = [ ] as LoggedMessage [ ] ;
215- await uploadDatabases (
215+ await cleanupAndUploadDatabases (
216216 testRepoName ,
217217 getCodeQL ( ) ,
218218 getTestConfig ( tmpDir ) ,
@@ -243,7 +243,7 @@ test("Successfully uploading a database to github.com", async (t) => {
243243 await mockHttpRequests ( 201 ) ;
244244
245245 const loggedMessages = [ ] as LoggedMessage [ ] ;
246- await uploadDatabases (
246+ await cleanupAndUploadDatabases (
247247 testRepoName ,
248248 getCodeQL ( ) ,
249249 getTestConfig ( tmpDir ) ,
@@ -272,7 +272,7 @@ test("Successfully uploading a database to GHEC-DR", async (t) => {
272272 const databaseUploadSpy = await mockHttpRequests ( 201 ) ;
273273
274274 const loggedMessages = [ ] as LoggedMessage [ ] ;
275- await uploadDatabases (
275+ await cleanupAndUploadDatabases (
276276 testRepoName ,
277277 getCodeQL ( ) ,
278278 getTestConfig ( tmpDir ) ,
0 commit comments