Skip to content

Commit 0ce8ccd

Browse files
Merge branch 'master' into master
2 parents 136b7cc + 8c01eb3 commit 0ce8ccd

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

src/implementation/Client/HTTPClient/HTTPClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export default class HTTPClient implements IClient {
9494
}
9595
}
9696

97+
9798
const urlFull = url.startsWith("http") ? url : `${this.clientUrl}${url}`;
9899
const agent = urlFull.startsWith("https") ? this.httpsAgent : this.httpAgent;
99100
params.agent = agent;

src/implementation/Server/DaprServer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ export default class DaprServer {
103103
await this.daprServer.stop();
104104
}
105105

106+
async stopServer(): Promise<void> {
107+
await this.daprServer.stopServer();
108+
}
109+
106110
getDaprClient(): IServer {
107111
return this.daprServer;
108112
}

test/e2e/main.grpc.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ describe('grpc/main', () => {
3232
await server.stop();
3333
});
3434

35+
afterAll(async () => {
36+
await server.stopServer();
37+
});
38+
3539
describe('binding', () => {
3640
it('should be able to receive events', async () => {
3741
await client.binding.send('binding-mqtt', 'create', { hello: 'world' });

test/e2e/main.http.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ describe('http/main', () => {
3636
await client.stop();
3737
});
3838

39+
afterAll(async () => {
40+
await server.stopServer();
41+
});
42+
3943
describe('binding', () => {
4044
it('should be able to receive events', async () => {
4145
await client.binding.send('binding-mqtt', 'create', { hello: 'world' });

0 commit comments

Comments
 (0)