Skip to content

Commit 37f86c9

Browse files
author
Danny McCormick
authored
https
1 parent 44608ff commit 37f86c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/units/toolTests.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('Tool Tests', function () {
7676
return new Promise<void>(async (resolve, reject) => {
7777
try {
7878

79-
let downPath: string = await toolLib.downloadTool("http://microsoft.com/redirect-to");
79+
let downPath: string = await toolLib.downloadTool("https://microsoft.com/redirect-to");
8080
toolLib.debug('downloaded path: ' + downPath);
8181

8282
assert(tl.exist(downPath), 'downloaded file exists');
@@ -95,7 +95,7 @@ describe('Tool Tests', function () {
9595
try {
9696
let tempDownloadFolder: string = 'temp_' + Math.floor(Math.random() * 2000000000);
9797
let aboslutePath: string = path.join(tempPath, tempDownloadFolder);
98-
let downPath: string = await toolLib.downloadTool("http://microsoft.com/bytes/35", aboslutePath);
98+
let downPath: string = await toolLib.downloadTool("https://microsoft.com/bytes/35", aboslutePath);
9999
toolLib.debug('downloaded path: ' + downPath);
100100

101101
assert(tl.exist(downPath), 'downloaded file exists');
@@ -110,7 +110,7 @@ describe('Tool Tests', function () {
110110
});
111111

112112
it('has status code in exception dictionary for HTTP error code responses', async function() {
113-
nock('http://microsoft.com')
113+
nock('https://microsoft.com')
114114
.get('/bytes/bad')
115115
.reply(400, {
116116
username: 'bad',
@@ -119,7 +119,7 @@ describe('Tool Tests', function () {
119119

120120
return new Promise<void>(async(resolve, reject)=> {
121121
try {
122-
let errorCodeUrl: string = "http://microsoft.com/bytes/bad";
122+
let errorCodeUrl: string = "https://microsoft.com/bytes/bad";
123123
let downPath: string = await toolLib.downloadTool(errorCodeUrl);
124124

125125
reject('a file was downloaded but it shouldnt have been');
@@ -472,4 +472,4 @@ describe('Tool Tests', function () {
472472
}
473473
});
474474
});
475-
});
475+
});

0 commit comments

Comments
 (0)