Skip to content

Instantly share code, notes, and snippets.

View deadlysyn's full-sized avatar
☁️
yelling at clouds

Mike Hoskins deadlysyn

☁️
yelling at clouds
View GitHub Profile
@deadlysyn
deadlysyn / gist:ff3c13c6acb6e9f4182e180b4ff8a6cf
Last active October 13, 2020 03:04
ahab docker failure
❯ go test -timeout 20m -run TestDockerIntegration ./...
? github.com/sonatype-nexus-community/ahab [no test files]
? github.com/sonatype-nexus-community/ahab/audit [no test files]
? github.com/sonatype-nexus-community/ahab/buildversion [no test files]
? github.com/sonatype-nexus-community/ahab/cmd [no test files]
[SETUP]
Output 2: 0
Error: exit status 1
Output 1: 1
Error: exit status 1

Keybase proof

I hereby claim:

  • I am deadlysyn on github.
  • I am deadlysyn (https://keybase.io/deadlysyn) on keybase.
  • I have a public key ASB6q9sGTPJ0I7_yrgbJDEf7xGgO7qFSnS-vxV2jr3UWFwo

To claim this, I am signing this object:

// hold test results
global.testResults = { status: 200 };
app.get('/healthcheck', (req, res, next) => {
// not middleware so we don't wait for next()
testRunner();
res.status(testResults.status).json(testResults);
});
const testRunner = async (req, next) => {
testResults.database = await databaseTest();
if (testResults.database.message !== 'OK') {
testResults.status = 500;
}
testResults.network = await networkTest();
if (testResults.network.message !== 'OK') {
testResults.status = 500;
}
// etc...
const databaseTest = () =>
new Promise(resolve => {
setTimeout(() => {
console.log('db test running');
resolve({
message: 'OK',
timestamp: Date.now(),
});
}, 3000);
});
const ProductCategoryRow = ({ category = 'javascript', children }) =>
<tr>
<th colSpan="2">
{category}
</th>
{children}
</tr>
const ProductCategoryRow = ({ category }) => (
<tr>
<th colSpan="2">
{category}
</th>
</tr>
);
function ProductCategoryRow(props) {
const category = props.category;
return (
<tr>
<th colSpan="2">
{category}
</th>
</tr>
);
}
class ProductCategoryRow extends React.Component {
render() {
const category = this.props.category;
return (
<tr>
<th colSpan="2">
{category}
</th>
</tr>
);