Skip to content

Instantly share code, notes, and snippets.

<--- Last few GCs --->
[127178:0x2689990] 60950222 ms: Scavenge 1343.3 (1422.7) -> 1343.0 (1423.2) MB, 5.6 / 0.0 ms (average mu = 0.157, current mu = 0.092) allocation failure
[127178:0x2689990] 60950232 ms: Scavenge 1343.7 (1423.2) -> 1343.4 (1424.2) MB, 5.6 / 0.0 ms (average mu = 0.157, current mu = 0.092) allocation failure
[127178:0x2689990] 60950242 ms: Scavenge 1344.1 (1424.2) -> 1343.8 (1424.7) MB, 5.7 / 0.0 ms (average mu = 0.157, current mu = 0.092) allocation failure
<--- JS stacktrace --->
==== JS stack trace =========================================
it('scenario 3', async function() {
await driver.get('file://' + path.join(__dirname, '../../test-pages/index.html'));
await driver.findElement(By.xpath('//*[text()="button3"]')).click();
const element = until.elementIsVisible(driver.findElement(By.id('hidden3')));
const actualElement = await driver.wait(element, ELEMENT_TIMEOUT);
assert.equal(await actualElement.getText(), 'hidden3 pass');
});
@mo
mo / git-smash
Created September 9, 2016 17:56
git-smash, implemente as:
#!/bin/bash
EDITOR=true git rebase -i --autosquash $(git log --oneline --grep fixup! --author=$(git config user.email) --all-match --pretty=format:%h | xargs -I SHA1 git-fixup-target SHA1 | xargs git merge-base --octopus)^
@mo
mo / git-smash
Created September 9, 2016 17:53
EDITOR=true git rebase -i --autosquash $(git log --oneline --grep fixup! --author=$(git config user.email) --all-match --pretty=format:%h | xargs -I SHA1 git-fixup-target SHA1 | xargs git merge-base --octopus)^