Skip to content

Commit 0c79e3f

Browse files
committed
fix: ci
1 parent 7449ede commit 0c79e3f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/server/Server.test.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,10 @@ describe('Server', () => {
136136
compiler = webpack(config);
137137
});
138138

139-
afterEach((done) => {
140-
server.close(done);
141-
});
142-
143139
it('should listen and not throw error', (done) => {
144140
const options = {
145141
host: 'localhost',
142+
port,
146143
};
147144

148145
server = new Server(compiler, options);
@@ -158,7 +155,7 @@ describe('Server', () => {
158155

159156
server = new Server(compiler, options);
160157

161-
expect(() => server.listen(port)).not.toThrowError();
158+
expect(() => server.listen(port + 1)).not.toThrowError();
162159
server.close(done);
163160
});
164161

0 commit comments

Comments
 (0)