Skip to content

Commit

Permalink
Promisealled client disconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed Apr 3, 2024
1 parent b121ada commit 5c8228f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/regr-tests/arithmetics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('JIFF Arithmetic Operations', () => {

afterEach(async () => {
// Shutting down client
jiffClients.map(async (client, _) => await client.socket.disconnect());
Promise.all(jiffClients.map(client => client.socket.disconnect()));

// Shutting down Server
await jiffServer.closeAllSockets();
Expand Down
2 changes: 1 addition & 1 deletion tests/regr-tests/array.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('JIFF Array Operations', () => {

afterEach(async () => {
// Shutting down client
jiffClients.map(async (client, _) => await client.socket.disconnect());
Promise.all(jiffClients.map(client => client.socket.disconnect()));

// Shutting down Server
await jiffServer.closeAllSockets();
Expand Down
4 changes: 2 additions & 2 deletions tests/regr-tests/bitwise-comp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ describe('JIFF bitshare Comparison', () => {
await jiff.apply_extension(jiff_fixedpoint, options);
await jiff.apply_extension(jiff_negativenumber, options);
}
jiffClients.map(async (client, _) => await apply_extension(client));
Promise.all(jiffClients.map(apply_extension))
});

afterEach(async () => {
// Shutting down client
jiffClients.map(async (client, _) => await client.socket.disconnect());
Promise.all(jiffClients.map(client => client.socket.disconnect()));

// Shutting down Server
await jiffServer.closeAllSockets();
Expand Down
2 changes: 1 addition & 1 deletion tests/regr-tests/bitwise-ops.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('JIFF bitwise Arithmetic Operations', () => {

afterEach(async () => {
// Shutting down client
jiffClients.map(async (client, _) => await client.socket.disconnect());
Promise.all(jiffClients.map(client => client.socket.disconnect()));

// Shutting down Server
await jiffServer.closeAllSockets();
Expand Down
2 changes: 1 addition & 1 deletion tests/regr-tests/preprocess.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('JIFF Preprocessing Operations', () => {

afterEach(async () => {
// Shutting down client
jiffClients.map(async (client, _) => await client.socket.disconnect());
Promise.all(jiffClients.map(client => client.socket.disconnect()));

// Shutting down Server
await jiffServer.closeAllSockets();
Expand Down
2 changes: 1 addition & 1 deletion tests/regr-tests/statistics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('JIFF Statistics Operations', () => {

afterEach(async () => {
// Shutting down client
jiffClients.map(async (client, _) => await client.socket.disconnect());
Promise.all(jiffClients.map(client => client.socket.disconnect()));

// Shutting down Server
await jiffServer.closeAllSockets();
Expand Down
2 changes: 1 addition & 1 deletion tests/regr-tests/vote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('JIFF Voting', () => {

afterEach(async () => {
// Shutting down client
jiffClients.map(async (client, _) => await client.socket.disconnect());
Promise.all(jiffClients.map(client => client.socket.disconnect()));

// Shutting down Server
await jiffServer.closeAllSockets();
Expand Down

0 comments on commit 5c8228f

Please sign in to comment.