Skip to content

Commit 7b700b6

Browse files
committed
fix: Sleep not required in other than initialize()
1 parent d13ca98 commit 7b700b6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/gotham-node.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ makeConnectionTests('Initalize Tests', function () {
4141
makeConnectionTests('Test if requests constructed correctly', function () {
4242
it('declareFunction', async function () {
4343
this.test.module.declareFunction('test_fn', () => { });
44-
await sleep(0);
4544
const message = this.test.sendFunc.getCall(0).args[0];
4645
expect(message).excluding('requestId').to.deep.equal({
4746
function: "test_fn",
@@ -52,7 +51,6 @@ makeConnectionTests('Test if requests constructed correctly', function () {
5251

5352
it('functionCall with empty args', async function() {
5453
this.test.module.functionCall('module.test_fn');
55-
await sleep(0);
5654
const message = this.test.sendFunc.getCall(0).args[0];
5755
expect(message).excluding('requestId').to.deep.equal({
5856
function: "module.test_fn",
@@ -66,7 +64,6 @@ makeConnectionTests('Test if requests constructed correctly', function () {
6664
a: 1,
6765
b: 2
6866
});
69-
await sleep(0);
7067
const message = this.test.sendFunc.getCall(0).args[0];
7168
expect(message).excluding('requestId').to.deep.equal({
7269
function: "module.test_fn",

0 commit comments

Comments
 (0)