@@ -886,9 +886,10 @@ test.serial(
886886
887887 t . assert ( path ) ;
888888 t . is (
889- path ,
889+ path . path ,
890890 filepath . join ( toolcachePath , startProxyExports . getProxyFilename ( ) ) ,
891891 ) ;
892+ t . is ( path . version , startProxyExports . UPDATEJOB_PROXY_VERSION ) ;
892893 } ) ;
893894 } ,
894895) ;
@@ -939,9 +940,10 @@ test.serial(
939940 t . assert ( cacheDir . calledOnceWith ( extractedPath ) ) ;
940941 t . assert ( path ) ;
941942 t . is (
942- path ,
943+ path . path ,
943944 filepath . join ( toolcachePath , startProxyExports . getProxyFilename ( ) ) ,
944945 ) ;
946+ t . is ( path . version , defaults . cliVersion ) ;
945947
946948 checkExpectedLogMessages ( t , logger . messages , [
947949 `Found '${ startProxyExports . getProxyPackage ( getTestPlatform ( state ) ) } ' in release '${ defaults . bundleVersion } ' at '${ downloadUrl } '` ,
@@ -954,7 +956,8 @@ test.serial(
954956 async ( t ) => {
955957 const logger = new RecordingLogger ( ) ;
956958 const state = initAllState ( { logger } ) ;
957- const expectedTag = "codeql-bundle-v2.20.1" ;
959+ const expectedVersion = "2.20.1" ;
960+ const expectedTag = `codeql-bundle-v${ expectedVersion } ` ;
958961 const expectedParams = {
959962 owner : "github" ,
960963 repo : "codeql-action" ,
@@ -1012,7 +1015,9 @@ test.serial(
10121015 const getDefaultCliVersion = sinon
10131016 . stub ( features , "getEnabledDefaultCliVersions" )
10141017 . resolves ( {
1015- enabledVersions : [ { cliVersion : "2.20.1" , tagName : expectedTag } ] ,
1018+ enabledVersions : [
1019+ { cliVersion : expectedVersion , tagName : expectedTag } ,
1020+ ] ,
10161021 } ) ;
10171022 const path = await startProxyExports . getProxyBinaryPath ( {
10181023 ...state ,
@@ -1033,9 +1038,10 @@ test.serial(
10331038
10341039 t . assert ( path ) ;
10351040 t . is (
1036- path ,
1041+ path . path ,
10371042 filepath . join ( toolcachePath , startProxyExports . getProxyFilename ( ) ) ,
10381043 ) ;
1044+ t . is ( path . version , expectedVersion ) ;
10391045 } ) ;
10401046
10411047 checkExpectedLogMessages ( t , logger . messages , [
0 commit comments