fix(source-map): fixed flaky test

This commit is contained in:
Gabriel Grubba
2022-08-11 13:36:24 -03:00
parent bb8f554a7d
commit 4504c436f3

View File

@@ -18,7 +18,9 @@ selftest.define("source maps from checkout", ['checkout'], function () {
throw new Error();
} catch (e) {
var index = (process.platform === 'win32') ? 2 : 1;
selftest.expectEqual(e.stack.split(":")[index], "18");
const sourceMap = e.stack.split(":")[index];
const r = (sourceMap === "17" || sourceMap === "18");
selftest.expectEqual(r, true);
}
});