Skip to content

Commit e89ffd1

Browse files
committed
test: try different base config
1 parent 1807de7 commit e89ffd1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/main.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,19 @@ tap.test("Sink() - .write() - arguments is illegal", async (t) => {
159159
});
160160

161161
tap.test("Sink() - .write() - timeout", async (t) => {
162-
const sink = new Sink(DEFAULT_CONFIG, {
163-
writeTimeout: 40,
164-
});
162+
const sink = new Sink(
163+
{ ...DEFAULT_CONFIG, retryOptions: { maxRetries: 0 } },
164+
{
165+
writeTimeout: 40,
166+
},
167+
);
165168
const dir = slug();
166169
const file = `${dir}/bar/map.json`;
167170

168171
const writeFrom = readFileStream("../fixtures/import-map.json");
169172
const writeTo = await sink.write(file, "application/json");
170173

171-
t.rejects(() => pipe(writeFrom, writeTo), /network timeout at/);
174+
t.rejects(pipe(writeFrom, writeTo), /network timeout at/);
172175
t.end();
173176
});
174177

0 commit comments

Comments
 (0)