@@ -6,7 +6,7 @@ import { fetch } from "undici";
6
6
7
7
test ( "DELETE-fail-index-file-disableAuthentication" , async ( ) => {
8
8
const path = fileURLToPath ( new URL ( "../index/" , import . meta. url ) ) ;
9
- const port = Math . floor ( Math . random ( ) * 65536 ) ;
9
+ const port = 20000 + Math . floor ( Math . random ( ) * 45536 ) ;
10
10
const host = "127.0.0.1" ;
11
11
const username = "root" ;
12
12
const password = "root" ;
@@ -36,7 +36,7 @@ test("DELETE-fail-index-file-disableAuthentication", async () => {
36
36
} ) ;
37
37
test ( "post-fail-index-file-disableAuthentication" , async ( ) => {
38
38
const path = fileURLToPath ( new URL ( "../index/" , import . meta. url ) ) ;
39
- const port = Math . floor ( Math . random ( ) * 65536 ) ;
39
+ const port = 20000 + Math . floor ( Math . random ( ) * 45536 ) ;
40
40
const host = "127.0.0.1" ;
41
41
const username = "root" ;
42
42
const password = "root" ;
@@ -66,7 +66,7 @@ test("post-fail-index-file-disableAuthentication", async () => {
66
66
} ) ;
67
67
test ( "get-ok-index-file-disableAuthentication" , async ( ) => {
68
68
const path = fileURLToPath ( new URL ( "../index/" , import . meta. url ) ) ;
69
- const port = Math . floor ( Math . random ( ) * 65536 ) ;
69
+ const port = 20000 + Math . floor ( Math . random ( ) * 45536 ) ;
70
70
const host = "127.0.0.1" ;
71
71
const username = "root" ;
72
72
const password = "root" ;
@@ -101,7 +101,7 @@ test("get-ok-index-file-disableAuthentication", async () => {
101
101
102
102
test ( "get-Unauthorized" , async ( ) => {
103
103
const path = fileURLToPath ( new URL ( "../index/" , import . meta. url ) ) ;
104
- const port = Math . floor ( Math . random ( ) * 65536 ) ;
104
+ const port = 20000 + Math . floor ( Math . random ( ) * 45536 ) ;
105
105
const host = "127.0.0.1" ;
106
106
const username = "root" ;
107
107
const password = "root" ;
@@ -123,7 +123,7 @@ test("get-Unauthorized", async () => {
123
123
124
124
test ( "get-ok-dir-index" , async ( ) => {
125
125
const path = fileURLToPath ( new URL ( "../index/" , import . meta. url ) ) ;
126
- const port = Math . floor ( Math . random ( ) * 65536 ) ;
126
+ const port = 20000 + Math . floor ( Math . random ( ) * 45536 ) ;
127
127
const host = "127.0.0.1" ;
128
128
const username = "root" ;
129
129
const password = "root" ;
@@ -150,7 +150,7 @@ test("get-ok-dir-index", async () => {
150
150
} ) ;
151
151
test ( "get-ok-index-file" , async ( ) => {
152
152
const path = fileURLToPath ( new URL ( "../index/" , import . meta. url ) ) ;
153
- const port = Math . floor ( Math . random ( ) * 65536 ) ;
153
+ const port = 20000 + Math . floor ( Math . random ( ) * 45536 ) ;
154
154
const host = "127.0.0.1" ;
155
155
const username = "root" ;
156
156
const password = "root" ;
@@ -176,7 +176,7 @@ test("get-ok-index-file", async () => {
176
176
} ) ;
177
177
test ( "get-ok-index-file-methodsWithoutAuthentication" , async ( ) => {
178
178
const path = fileURLToPath ( new URL ( "../index/" , import . meta. url ) ) ;
179
- const port = Math . floor ( Math . random ( ) * 65536 ) ;
179
+ const port = 20000 + Math . floor ( Math . random ( ) * 45536 ) ;
180
180
const host = "127.0.0.1" ;
181
181
const username = "root" ;
182
182
const password = "root" ;
@@ -210,7 +210,7 @@ test("get-ok-index-file-methodsWithoutAuthentication", async () => {
210
210
} ) ;
211
211
test ( "get-not-found-index-file" , async ( ) => {
212
212
const path = fileURLToPath ( new URL ( "../index/" , import . meta. url ) ) ;
213
- const port = Math . floor ( Math . random ( ) * 65536 ) ;
213
+ const port = 20000 + Math . floor ( Math . random ( ) * 45536 ) ;
214
214
const host = "127.0.0.1" ;
215
215
const username = "root" ;
216
216
const password = "root" ;
0 commit comments