Skip to content

Commit

Permalink
Integrate packet test
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinaleonr committed Aug 6, 2024
1 parent 8cb3388 commit 8d7bd92
Show file tree
Hide file tree
Showing 3 changed files with 827 additions and 805 deletions.
32 changes: 32 additions & 0 deletions app/measure/measure.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ angular.module('Measure.Measure', ['ngRoute'])
await runNdt7(sessionID);
}

await runBBRTerminatedNdt7(sessionID)

$scope.$apply(function () {
$scope.currentPhase = gettextCatalog.getString('Complete');
$scope.currentSpeed = '';
Expand Down Expand Up @@ -182,6 +184,36 @@ angular.module('Measure.Measure', ['ngRoute'])

await client.start();
}

async function runBBRTerminatedNdt7(sid) {
return packet-test.test(
{
userAcceptedDataPolicy: true,
uploadworkerfile: "/libraries/ndt7-upload-worker.min.js",
downloadworkerfile: "/libraries/ndt7-download-worker.min.js",
metadata: {
client_name: "speed-measurementlab-net",
client_session_id: sid,
max_cwnd_gain: "512",
}
},
{
serverChosen: function (server) {
$scope.location = server.location.city + ", " +
server.location.country;
$scope.address = server.machine;
console.log('Testing to:', {
machine: server.machine,
locations: server.location,
});
},
downloadComplete: (data) => {
console.log(data);
},
},
)
}

});

/**
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@bower_components/skel": "n33/skel#~3.0.1",
"@m-lab/msak": "0.3.1",
"@m-lab/ndt7": "0.0.6",
"@m-lab/packet-test": "^0.0.1",
"ng-device-detector": "^5.1.4",
"re-tree": "^0.1.7",
"ua-device-detector": "^1.1.8"
Expand Down
Loading

0 comments on commit 8d7bd92

Please sign in to comment.