{"size": 484, "ext": "js", "max_stars_repo_path": "third_party/blink/web_tests/http/tests/websocket/workers/resources/worker-handshake-challenge-randomness.js", "max_stars_repo_name": "zealoussnow/chromium", "max_stars_repo_stars_event_min_datetime": "2015-01-01T01:57:10.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T23:33:32.000Z", "max_issues_repo_path": "third_party/blink/web_tests/http/tests/websocket/workers/resources/worker-handshake-challenge-randomness.js", "max_issues_repo_name": "zealoussnow/chromium", "max_issues_repo_issues_event_min_datetime": "2015-05-04T09:58:14.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-31T19:35:03.000Z", "max_forks_repo_path": "third_party/blink/web_tests/http/tests/websocket/workers/resources/worker-handshake-challenge-randomness.js", "max_forks_repo_name": "zealoussnow/chromium", "max_forks_repo_forks_event_min_datetime": "2015-01-02T11:32:21.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T16:35:46.000Z"}
{"max_stars_count": 14668, "max_issues_count": 113, "max_forks_count": 5941, "avg_line_length": 32.2666666667, "max_line_length": 133, "alphanum_fraction": 0.7045454545}
importScripts("/js-test-resources/js-test.js", "../../resources/get-request-header.js");

var challenge1;
var challenge2;

Promise.all([connectAndGetRequestHeader("sec-websocket-key"), connectAndGetRequestHeader("sec-websocket-key")]).then(function(values)
{
    challenge1 = values[0];
    challenge2 = values[1];
    shouldBeFalse('challenge1 === challenge2');
    if (challenge1 === challenge2)
        debug('challenge was ' + challenge1);
    finishJSTest();
}, finishAsFailed);
