Skip to content

Commit 48942fe

Browse files
committed
make test slightly better
1 parent 19fa3d5 commit 48942fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/packages/backend/conat/test/cluster/cluster-sticky-state.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,11 @@ describe("ensure sticky state sync and use is working properly", () => {
119119
}
120120
}
121121
for (const server of servers) {
122+
// we randomize the last segment to verify that it is NOT used
123+
// as input to the sticky routing choice.
122124
const { count } = await server
123125
.client()
124-
.publish("subject.0.foo", "delivery-test");
126+
.publish(`subject.0.${randomId()}`, "delivery-test");
125127
expect(count).toBe(1);
126128
}
127129
const ids = new Set<string>();
@@ -170,7 +172,6 @@ describe("ensure sticky state sync and use is working properly", () => {
170172
);
171173
expect(v.length).toBe(count);
172174
});
173-
174175
});
175176

176177
afterAll(after);

0 commit comments

Comments
 (0)