Skip to content

Commit 37e2d7b

Browse files
committed
move topicName creation up with other params
1 parent 617ddbb commit 37e2d7b

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
@@ -306,6 +306,8 @@ export const test = testBase.extend<VSCodeFixtures>({
306306
// ensure connection has resources available to work with
307307
await expect(connectionItem.locator).toHaveAttribute("aria-expanded", "true");
308308

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

326327
await use(topicName);

0 commit comments

Comments
 (0)