Commit e795d1a5 authored by Ramon Nou's avatar Ramon Nou
Browse files

Updated tests

parent 081f02e7
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ main(int argc, char* argv[]) {


        scord::transfer_update(server, transfer.id(), 10.0f);
        fmt::print(stdout, "ADM_transfer_update remote procedure completed "
        fmt::print(stdout, "ADM_transfer_update() remote procedure completed "
                           "successfully\n");
        exit(EXIT_SUCCESS);
    } catch(const std::exception& e) {
+2 −1
Original line number Diff line number Diff line
@@ -542,7 +542,8 @@ transfer_update(const server& srv, uint64_t transfer_id, float obtained_bw) {
       lookup_rv.has_value()) {
        const auto& endp = lookup_rv.value();

        LOGGER_INFO("rpc {:<} body: {{transfer_id: {}}}", rpc, transfer_id);
        LOGGER_INFO("rpc {:<} body: {{transfer_id: {}, obtained_bw: {}}}", rpc,
                    transfer_id, obtained_bw);

        if(const auto& call_rv =
                   endp.call(rpc.name(), transfer_id, obtained_bw);
+1 −2
Original line number Diff line number Diff line
@@ -793,8 +793,7 @@ rpc_server::transfer_update(const network::request& req, uint64_t transfer_id,

    const auto resp = response_with_id{rpc.id(), ec, transfer_id};

    LOGGER_INFO("rpc {:<} body: {{retval: {}, tx_id: {}}}", rpc, ec,
                transfer_id);
    LOGGER_INFO("rpc {:<} body: {{retval: {}}}", rpc, ec);

    // TODO: create a transfer in transfer manager
    // We need the contact point, and different qos