Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ export default function () {
select: { labels: { "app.kubernetes.io/name": "my-app" } },
});

// Check that there is at least one target
const targets = disruptor.targets();
if (targets.length === 0) {
throw new Error("expected list to have one target");
}

// Disrupt the targets by injecting HTTP faults into them for 30 seconds
const fault = {
averageDelay: 500,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ const fault = {

export default function () {
const disruptor = new PodDisruptor(selector);
const targets = disruptor.targets();
if (targets.length != 1) {
throw new Error('expected list to have one target');
}

disruptor.injectHTTPFaults(fault, '30s');
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ const fault = {

export default function () {
const disruptor = new ServiceDisruptor('nginx', 'default');
const targets = disruptor.targets();
if (targets.length != 1) {
throw new Error('expected list to have one target');
}

disruptor.injectHTTPFaults(fault, '30s');
}
```
Expand Down