Skip to content

Commit cb7af7c

Browse files
committed
move topicName creation up with other params
1 parent b343df2 commit cb7af7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/e2e/baseTest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ export const test = testBase.extend<VSCodeFixtures>({
305305
// ensure connection has resources available to work with
306306
await expect(connectionItem.locator).toHaveAttribute("aria-expanded", "true");
307307

308+
const topicName = `${topicConfig.name}-${randomUUID()}`;
309+
308310
// set default replication factor (if it wasn't provided) based on connection type
309311
const replicationFactor =
310312
topicConfig.replicationFactor ??
@@ -319,7 +321,6 @@ export const test = testBase.extend<VSCodeFixtures>({
319321
SelectKafkaCluster.FromResourcesView,
320322
topicConfig.clusterLabel,
321323
);
322-
const topicName = `${topicConfig.name}-${randomUUID()}`;
323324
await topicsView.createTopic(topicName, numPartitions, replicationFactor);
324325

325326
await use(topicName);

0 commit comments

Comments
 (0)