Skip to content

Commit

Permalink
Merge pull request #1212 from JKRhb/coap-server-test-fix
Browse files Browse the repository at this point in the history
test(coap-server): don't shutdown servient unnecessarily
  • Loading branch information
relu91 authored Jan 11, 2024
2 parents 3ccd242 + dec7291 commit b77b16a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/binding-coap/test/coap-server-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,14 +598,13 @@ class CoapServerTest {
});

await coapServer.stop();
await servient.shutdown();
}

@test async "should reject unsupported methods for meta operations"() {
const coapServer = new CoapServer();
const servient = new Servient();

await coapServer.start(servient);
await coapServer.start(new Servient());

const testThingWithoutForms = new ExposedThing(servient, {
title: "Test",
Expand Down Expand Up @@ -634,6 +633,5 @@ class CoapServerTest {
});

await coapServer.stop();
await servient.shutdown();
}
}

0 comments on commit b77b16a

Please sign in to comment.