Skip to content

Commit

Permalink
fix: pactffi_create_mock_server_for_transport returns uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Dec 2, 2022
1 parent 7cebccd commit 8d85a81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion native/consumer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ Napi::Value PactffiCreateMockServerForTransport(const Napi::CallbackInfo& info)
std::string transport = info[3].As<Napi::String>().Utf8Value();
std::string config = info[4].As<Napi::String>().Utf8Value();

uint16_t result = pactffi_create_mock_server_for_transport(pact, addr.c_str(), port, transport.c_str(), config.c_str());
uint32_t result = pactffi_create_mock_server_for_transport(pact, addr.c_str(), port, transport.c_str(), config.c_str());

return Number::New(env, result);
}
Expand Down
2 changes: 1 addition & 1 deletion test/consumer.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe('FFI integration test for the HTTP Consumer API', () => {
const requestMismatches =
mismatches[0] as MatchingResultRequestMismatch;

expect(mismatches[0].type).to.equal('request-mismatch');
expect(requestMismatches.type).to.equal('request-mismatch');
expect(requestMismatches.method).to.equal('POST');
expect(requestMismatches.path).to.equal('/dogs/1234');
expect(requestMismatches.mismatches).to.deep.include({
Expand Down

0 comments on commit 8d85a81

Please sign in to comment.