Skip to content

Commit

Permalink
test(rstream): minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 8, 2021
1 parent aa2ceef commit 9177729
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/rstream/test/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { setLogger } from "../src";
/**
* Default base delay for time based tests
*/
export const TIMEOUT = 100;
export const TIMEOUT = 50;

export const withLogger = () => setLogger(new ConsoleLogger("rstream"));
5 changes: 2 additions & 3 deletions packages/rstream/test/debounce.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { group } from "@thi.ng/testament";
import * as assert from "assert";
import { debounce, fromIterable, trace } from "../src";
import { debounce, fromIterable } from "../src";
import { TIMEOUT } from "./config";

group(
Expand All @@ -10,7 +10,6 @@ group(
const acc: number[] = [];
fromIterable([1, 2, 3], { delay: TIMEOUT })
.subscribe(debounce(TIMEOUT * 1.5))
.subscribe(trace("debounced"))
.subscribe({
next(x) {
acc.push(x);
Expand All @@ -37,5 +36,5 @@ group(
}, TIMEOUT * 5);
},
},
{ maxTries: 3, timeOut: TIMEOUT * 6, stop: false }
{ maxTries: 3, timeOut: TIMEOUT * 6 }
);

0 comments on commit 9177729

Please sign in to comment.