Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed May 5, 2022
1 parent e33a8c2 commit 3e3bd84
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/test_avro.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tests Kafka with a 200 Avro messages per iteration.
*/

import { check } from "k6";
import { writer, produce, reader, consume, createTopic } from "k6/x/kafka"; // import kafka extension
import { writer, produce, reader, consume, createTopic, deleteTopic } from "k6/x/kafka"; // import kafka extension

const bootstrapServers = ["localhost:9092"];
const kafkaTopic = "xk6_kafka_avro_topic";
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_avro_no_key.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ without any associated key.
*/

import { check } from "k6";
import { writer, produce, reader, consume, createTopic } from "k6/x/kafka"; // import kafka extension
import { writer, produce, reader, consume, createTopic, deleteTopic } from "k6/x/kafka"; // import kafka extension

const bootstrapServers = ["localhost:9092"];
const kafkaTopic = "xk6_kafka_avro_topic";
Expand Down
1 change: 1 addition & 0 deletions scripts/test_avro_with_schema_registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
consumeWithConfiguration,
produceWithConfiguration,
createTopic,
deleteTopic,
} from "k6/x/kafka"; // import kafka extension

const bootstrapServers = ["subdomain.us-east-1.aws.confluent.cloud:9092"];
Expand Down
1 change: 1 addition & 0 deletions scripts/test_avro_with_schema_registry_no_key.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
consumeWithConfiguration,
produceWithConfiguration,
createTopic,
deleteTopic,
} from "k6/x/kafka"; // import kafka extension

const bootstrapServers = ["localhost:9092"];
Expand Down
1 change: 1 addition & 0 deletions scripts/test_bytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
reader,
consumeWithConfiguration,
createTopic,
deleteTopic,
} from "k6/x/kafka"; // import kafka extension

const bootstrapServers = ["localhost:9092"];
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_json.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tests Kafka with a 200 JSON messages per iteration.
*/

import { check } from "k6";
import { writer, produce, reader, consume, createTopic } from "k6/x/kafka"; // import kafka extension
import { writer, produce, reader, consume, createTopic, deleteTopic } from "k6/x/kafka"; // import kafka extension

const bootstrapServers = ["localhost:9092"];
const kafkaTopic = "xk6_kafka_json_topic";
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_json_with_snappy_compression.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tests Kafka with a 200 JSON messages per iteration.
*/

import { check } from "k6";
import { writer, produce, reader, consume, createTopic } from "k6/x/kafka"; // import kafka extension
import { writer, produce, reader, consume, createTopic, deleteTopic } from "k6/x/kafka"; // import kafka extension

const bootstrapServers = ["localhost:9092"];
const kafkaTopic = "xk6_kafka_json_snappy_topic";
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ list topics on all Kafka partitions and creates a topic.
*/

import { createTopic, listTopics } from "k6/x/kafka"; // import kafka extension
import { createTopic, deleteTopic, listTopics } from "k6/x/kafka"; // import kafka extension

const address = "localhost:9092";
const kafkaTopic = "xk6_kafka_test_topic";
Expand Down

0 comments on commit 3e3bd84

Please sign in to comment.