tangled
alpha
login
or
join now
stream.place
/
streamplace
74
fork
atom
Live video on the AT Protocol
74
fork
atom
overview
issues
1
pulls
pipelines
api: fix serving files for trailing-slash urls
Eli Mallon
7 months ago
a817a101
860e4f17
+5
-8
2 changed files
expand all
collapse all
unified
split
js
desktop
src
tests
test-runner.ts
pkg
api
api.go
+5
-3
js/desktop/src/tests/test-runner.ts
···
27
27
duration: string,
28
28
privateKey: `0x${string}`,
29
29
): Promise<boolean> {
30
30
-
const testFuncs = [];
30
30
+
const testsToRun = [];
31
31
for (const test of tests) {
32
32
if (!allTests[test]) {
33
33
throw new Error(`Test ${test} not found`);
34
34
}
35
35
-
testFuncs.push(allTests[test]);
35
35
+
testsToRun.push(test);
36
36
}
37
37
try {
38
38
const results = [];
39
39
-
for (const test of testFuncs) {
39
39
+
for (const testName of testsToRun) {
40
40
+
const test = allTests[testName];
41
41
+
console.log(`============ running test ${testName} ============`);
40
42
let testProc: ChildProcess | undefined;
41
43
try {
42
44
const { skipNode } = getEnv();
-5
pkg/api/api.go
···
11
11
"net/http"
12
12
"net/http/httputil"
13
13
"net/url"
14
14
-
"os"
15
14
"strings"
16
15
"sync"
17
16
"time"
···
118
117
if err1 == nil {
119
118
return file, nil
120
119
}
121
121
-
if !errors.Is(err1, os.ErrNotExist) {
122
122
-
return nil, err1
123
123
-
}
124
124
-
125
120
return nil, ErrorIndex
126
121
}
127
122