We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1807de7 commit e89ffd1Copy full SHA for e89ffd1
test/main.js
@@ -159,16 +159,19 @@ tap.test("Sink() - .write() - arguments is illegal", async (t) => {
159
});
160
161
tap.test("Sink() - .write() - timeout", async (t) => {
162
- const sink = new Sink(DEFAULT_CONFIG, {
163
- writeTimeout: 40,
164
- });
+ const sink = new Sink(
+ { ...DEFAULT_CONFIG, retryOptions: { maxRetries: 0 } },
+ {
165
+ writeTimeout: 40,
166
+ },
167
+ );
168
const dir = slug();
169
const file = `${dir}/bar/map.json`;
170
171
const writeFrom = readFileStream("../fixtures/import-map.json");
172
const writeTo = await sink.write(file, "application/json");
173
- t.rejects(() => pipe(writeFrom, writeTo), /network timeout at/);
174
+ t.rejects(pipe(writeFrom, writeTo), /network timeout at/);
175
t.end();
176
177
0 commit comments