Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alvagi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
alvagi
Commits
d4858569
Commit
d4858569
authored
Sep 12, 2018
by
Sergey Dmitriev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test
parent
fffa9c8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
index.js
test/index.js
+2
-1
No files found.
test/index.js
View file @
d4858569
...
@@ -523,13 +523,14 @@ describe('agi#createServer', function() {
...
@@ -523,13 +523,14 @@ describe('agi#createServer', function() {
var
net
=
require
(
'
net
'
);
var
net
=
require
(
'
net
'
);
var
server
=
(
new
agi
()).
start
(
3000
);
var
server
=
(
new
agi
()).
start
(
3000
);
expect
(
server
instanceof
net
.
Server
).
ok
();
expect
(
server
instanceof
net
.
Server
).
ok
();
});
});
it
(
'
invokes callback when a new connection is established
'
,
function
(
done
)
{
it
(
'
invokes callback when a new connection is established
'
,
function
(
done
)
{
var
server
=
new
agi
(
function
(
context
)
{
var
server
=
new
agi
(
function
(
context
)
{
expect
(
context
instanceof
Context
);
expect
(
context
instanceof
Context
);
done
();
done
();
}).
start
(
300
0
);
}).
start
(
300
1
);
server
.
emit
(
'
connection
'
,
new
MemoryStream
());
server
.
emit
(
'
connection
'
,
new
MemoryStream
());
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment