Skip to content

Commit

Permalink
update API test to new DSL post merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Apr 13, 2022
1 parent df08aa4 commit dc6d1b6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
const events = timerange(new Date(start).getTime(), new Date(end).getTime())
.interval('1m')
.rate(1)
.spans((timestamp) => {
.generator((timestamp) => {
const isInSpike = timestamp >= spikeStart && timestamp < spikeEnd;
const count = isInSpike ? 4 : NORMAL_RATE;
const duration = isInSpike ? 1000 : NORMAL_DURATION;
Expand All @@ -56,7 +56,6 @@ export default function ApiTest({ getService }: FtrProviderContext) {
.timestamp(timestamp)
.duration(duration)
.outcome(outcome)
.serialize()
),
];
});
Expand Down

0 comments on commit dc6d1b6

Please sign in to comment.